Your assumption is wrong. Solr and Lucene match entire words.

You can use wildcards, but you need to be aware of the performance issues.

If there words are related parts of speech, like singular and plural, you can 
use a stemmer to index a root form.

You can also configure synonyms at index time, for things like "TV" and 
"television".

wunder

On Mar 5, 2013, at 9:18 AM, Van Tassell, Kristian wrote:

> I'm doing a search for "prod" and would assume it would pull back matches for 
> product, production, etc. but I get zero hits. Any ideas?
> 
> Here is my field type:
> 
> <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
> <analyzer type="index">
>                <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>               <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="stopwords.txt" enablePositionIncrements="true"
>                              />
>               <filter class="solr.WordDelimiterFilterFactory" 
> generateWordParts="1" generateNumberParts="1" catenateWords="1" 
> catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
>               <filter class="solr.LowerCaseFilterFactory"/>
>               <filter class="solr.SnowballPorterFilterFactory" 
> language="English" protected="protwords.txt"/>
>        </analyzer>
>        <analyzer type="query">
>               <tokenizer class="solr.WhitespaceTokenizerFactory"/>
>               <filter class="solr.SynonymFilterFactory" 
> synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
>               <filter class="solr.StopFilterFactory" ignoreCase="true" 
> words="stopwords.txt" enablePositionIncrements="true"
>                />
>               <filter class="solr.WordDelimiterFilterFactory" 
> generateWordParts="1" generateNumberParts="1" catenateWords="0" 
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
>               <filter class="solr.LowerCaseFilterFactory"/>
>               <filter class="solr.SnowballPorterFilterFactory" 
> language="English" protected="protwords.txt"/>
>        </analyzer>
> </fieldType>





Reply via email to