Hi, I noticed a scenario where in I am giving the search string as Country* without mentioning any field name, but no documents are fetched but if i give the query string as country*, then the docs are getting fetched.
If no field name is given in search, then the search happens in the default one given in schema.xml. In the field type defintion in schema.xml, the factory class LowerCaseFilterFactory is present in both the index and as well as query analyzer. But i am not sure why the search is not happening properly. Please provide some pointers as to where the problem might be. My doc looks like this <doc> <str name="name">XYZ</str> <arr name="names1"> <str>ABC CountryDEF ZZZ</str> </arr> </doc> My schema file looks as given below. <fieldType name="text_sample" 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" generateintegerParts="1" catenateWords="1" catenateintegers="1" catenateAll="1" splitOnCaseChange="1" splitOnNumerics="1" stemEnglishPossessive="1" /> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.PhoneticFilterFactory" encoder="Soundex" inject="true"/> </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" generateintegerParts="1" catenateWords="0" catenateintegers="0" catenateAll="0" splitOnCaseChange="0"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> <field name="text" type="text_sample" indexed="true" stored="false" multiValued="true" /> <field name="name" type="text_sample" indexed="true" stored="true"/> <field name="names1" type="text_sample" indexed="true" stored="true" multiValued="true"/> <defaultSearchField>text</defaultSearchField> <solrQueryParser defaultOperator="OR" /> <copyField source="name" dest="text" /> <copyField source="names1" dest="text" /> Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/Problems-while-searching-in-default-field-tp3601047p3601047.html Sent from the Solr - User mailing list archive at Nabble.com.