I'd start by looking at the analysis page from the Solr admin page. That
will give you an idea of the transformations the various steps carry out,
it's invaluable!

Best
Erick
On May 26, 2011 12:53 AM, "Saumitra Chowdhury" <
saumi...@smartitengineering.com> wrote:
> Hi all ,
> In my schema.xml i am using WordDelimiterFilterFactory,
> LowerCaseFilterFactory, StopFilterFactory for index analyzer and an extra
> SynonymFilterFactory for query analyzer. I am indexing a field name
> '*name*'.Now
> if a value with all caps like "NAME_BILL" is indexed I am able get this as
> search result with the term " *name_bill *", " *NAME_BILL *", " *namebill
*",
> "*namebill** ", " *nameb** " ... But for the term like following " *
> NAME_BILL** ", " *name_bill** ", " *namebill** ", " *NAME** " the result
> does mot show this document. Can anyone please explain why this is
> happening? .In fact star " * " is not giving any result in many
> cases specially if it is used after full value of a field.
>
> Portion of my schema is given below.............
>
> <fieldType name="text_ws" class="solr.TextField"
positionIncrementGap="100">
> -
> <analyzer>
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> </analyzer>
> </fieldType>
> -
> <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
> -
> <analyzer type="index">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0"
> generateNumberParts="0" catenateWords="1" catenateNumbers="1"
> catenateAll="0"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt" enablePositionIncrements="true"/>
> </analyzer>
> -
> <analyzer type="query">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0"
> generateNumberParts="0" catenateWords="1" catenateNumbers="1"
> catenateAll="0"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt" enablePositionIncrements="true"/>
> </analyzer>
> </fieldType>
> -
> <fieldType name="textTight" class="solr.TextField"
> positionIncrementGap="100">
> -
> <analyzer>
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0"
> generateNumberParts="0" catenateWords="1" catenateNumbers="1"
> catenateAll="0"/>
> <filter class="solr.LowerCaseFilterFactory"/>
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="false"/>
> <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt"/>
> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
> </analyzer>
> </fieldType>

Reply via email to