solr - Extended Dismax Query parser avoid replacing multiple white spaces with single white space -
i using extended dismax query parser in our setup. running following query documents related company
_query_:"{!edismax qf='company' q.op='or'}(\"the procter & gamble company\")"
for issue our indexing logic, have multiple spaces in company name the procter & gamble company
when run above query, not giving results edismax parser replacing multiple white spaces single white space. following snippet debug output
"rawquerystring": "_query_:\"{!edismax qf='company' q.op='or'}(\\\"the procter & gamble company\\\")\"", "querystring": "_query_:\"{!edismax qf='company' q.op='or'}(\\\"the procter & gamble company\\\")\"", "parsedquery": "(+disjunctionmaxquery((company:the procter & gamble company)))/no_coord", "parsedquery_tostring": "+(company:the procter & gamble company)", "qparser": "luceneqparser", "explain": {}
i using filetype lower_string field company. following definition of analyzer.
<fieldtype name="lower_string" class="solr.textfield" positionincrementgap="100"> <analyzer type="index"> <tokenizer class="solr.keywordtokenizerfactory"/> <filter class="solr.lowercasefilterfactory"/> <filter class="solr.removeduplicatestokenfilterfactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.keywordtokenizerfactory"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> </fieldtype>
any suggestions on how can tell edismax parser not replace multiple white spaces ?
Comments
Post a Comment