lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aman Deep Singh <amandeep.coo...@gmail.com>
Subject Automatic conversion to Range Query
Date Fri, 05 May 2017 05:55:55 GMT
Hi,
I'm facing a issue when i'm querying the Solr
my query is "xiomi Mi 5 -white [64GB/ 3GB]"
while my search field definition is

  <fieldType name="text_word_delimiter" class="solr.TextField"
autoGeneratePhraseQueries="false" positionIncrementGap="100">
    <analyzer type="index">
      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
      <filter class="solr.PatternReplaceFilterFactory"
pattern="[^\dA-Za-z ]" replacement=" "/>
      <filter class="solr.WordDelimiterFilterFactory"
catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1"
generateWordParts="1" preserveOriginal="1" catenateAll="1"
catenateWords="1"/>
      <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
    <analyzer type="query">
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.ManagedSynonymFilterFactory" managed="synonyms_gdn"/>
      <filter class="solr.PatternReplaceFilterFactory"
pattern="[^\dA-Za-z _]" replacement=" "/>
      <filter class="solr.WordDelimiterFilterFactory"
catenateNumbers="0" generateNumberParts="1" splitOnCaseChange="1"
generateWordParts="1" splitOnNumerics="1" preserveOriginal="0"
catenateAll="0" catenateWords="0"/>
      <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
  </fieldType>


My generated query is


+(((Synonym(nameSearch:xiaomi nameSearch:xiomi)) (nameSearch:mi)
(nameSearch:5) -(Synonym(nameSearch:putih
nameSearch:white))*(nameSearch:[64gb/ TO 3gb])*)~4)


Now due to automatic conversion of query  to Range query i'm not able
to find the result


Solr Version-6.4.2

Parser- edismax

Thanks,

Aman Deep Singh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message