Allowing quotes in search term solrnet -
i've come across problem when users trying search terms multiple works wrapped in quotes. i'm using solrnet query solr.
for example, if user searches "fertilizer", correct results. searching "fertilizer report" brings no results.
the code can see queries solr shown below, term
search term, , qo
query options contain start point , number of rows.
_solr.query(string.isnullorempty(term) ? solrquery.all : new solrquery(term), qo);
i've had @ article online, see here mention using quoted
, correct way go doing this? or should configured in schema/solr config files?
update 1
further mauricio's comment, i've added part of solr config xml below shows how i'm using dismax:
<requesthandler name="select" class="solr.searchhandler" default="true"> <lst name="defaults"> <str name="deftype">edismax</str> <int name="rows">10</int> <str name="df">title</str> <str name="qf">title^1000 text^1 item_type_search^0.1 category_search^0.1 topic_search^0.1</str> <str name="pf">title^1000 text^1 item_type_search^0.1 category_search^0.1 topic_search^0.1</str> <str name="facet">true</str> <str name="facet.mincount">1</str> <str name="facet.field">category_id</str> <str name="facet.field">item_type</str> <str name="facet.field">topic_id</str> <str name="facet.date">sort_date</str> <str name="f.sort_date.facet.date.start">2000-01-01t00:00:00.00z</str> <str name="f.sort_date.facet.date.end">2050-01-01t00:00:00.00z</str> <str name="f.sort_date.facet.date.gap">+1year</str> </lst>
looking @ link here of parameters qf
, df
, pf
using dismax.
Comments
Post a Comment