solrnet - Solr search not working when searching for more than one word -
solrnet - Solr search not working when searching for more than one word -
i'm seeing problem in application when end user attempts search item more 1 word. illustration have title field , value "two words". if search "two" can item back, if search "two words" nothing.
i using solrnet results don't think way pull out results. think it's how title field beingness tokenized.
anyway, here's compressed version of solr schema file:
<?xml version="1.0" ?><schema name="staging" version="1.1"> <types> <fieldtype name="ignored" indexed="false" stored="false" class="solr.strfield" /> <fieldtype name="string" class="solr.strfield" sortmissinglast="true" omitnorms="true"/> <fieldtype name="tint" class="solr.trieintfield" precisionstep="8" omitnorms="true" positionincrementgap="0"/> <fieldtype name="tdate" class="solr.triedatefield" omitnorms="true" precisionstep="6" positionincrementgap="0"/> <fieldtype name="long" class="solr.longfield" omitnorms="true"/> <fieldtype name="text_tokenized" class="solr.textfield" positionincrementgap="100"> <analyzer type="index"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.stopfilterfactory" ignorecase="true" words="../lang/en/stopwords.txt" enablepositionincrements="true" /> <filter class="solr.lowercasefilterfactory"/> <filter class="solr.ngramfilterfactory" mingramsize="3" maxgramsize="50"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.stopfilterfactory" ignorecase="true" words="../lang/en/stopwords.txt" enablepositionincrements="true" /> <filter class="solr.synonymfilterfactory" synonyms="../lang/synonyms.txt" ignorecase="true" expand="true"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> </fieldtype> </types> <fields> <field name="id" type="string" indexed="true" stored="true" multivalued="false" required="true" /> <field name="title" type="text_tokenized" indexed="true" stored="true" multivalued="true" /> </fields> <uniquekey>id</uniquekey> <defaultsearchfield>title</defaultsearchfield> <solrqueryparser defaultoperator="and"/>
obviously schema contains other fields, have shown couple now.
can see problem?
solr solrnet
Comments
Post a Comment