Wildcard query terms aren’t analyzed, why is that?
Prior to the current 3x branch (which will be released as 3.6) and the trunk (4.0) Solr code, users have frequently been perplexed by wildcard searching being un-analyzed, often manifesting in case sensitivity. Say you have an analysis chain in your schema.xml file defined as follows and a field named lc_field of this type:
<fieldType name="lowercase" class="solr.TextField" >
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowercaseFilterFactory" />
</fieldType>
Now, you index …
Read more
Lucene in Action, 2nd edition is now available through the Manning Early Access Program. We’ve arranged for an exclusive discount, on either printbook+ebook or just the ebook, for our readers. Simply enter the code lucene40 and get 40% off the book until April 1, 2009.
Lucene in Action, Second Edition, completely revises and updates the best-selling first edition and remains the authoritative book on Lucene. This book shows you how to index your documents, …
Read more
I was recently with a client doing a Best Practices assesment when I came across a common source of confusion related to sorting, faceting and schema design.
As background, Solr provides a schema that describes the Fields and Field Types (FT) that are used by an application. Field Types describe how Solr should handle the information contained in a Field. For instance, the integer FT tells Solr to treat the contents of any Field of …
Read more