solr4 - Solr ShingleFilterFactory in query analysis not worikng -


I have areas with definition given below, I do the perfect job in analysis, but when I query that way To try, the query analyzes behave differently.

Data: thd_keyphrase: California, social media, privately held companies located in privately held companies

queries: Q = thd_keyphrase: Find any social media

In the analysis query process is done: | Any | Any social The social media

and it is different from the debug query:

  "rawquerystring": "thd_keyphrase: search any social media", "Querystring": "thd_keyphrase: find any social **" thd_keyphrase: find text: any text: social text: media ", **  

/ Pre>

or when I remove the default field text: "msg": "No field name is specified in the query and no default specified by 'DF' is absolute,

  & lt; FieldType name = "keyphrase" class = "solr.TextField" omitNorms = "false" termVectors = "false" multiValued = "false" & gt; & Lt; Analyzer Type = "Index" & gt; & Lt; Tokenizer class = "solr.PatternTokenizerFactory" pattern = "\ s *, \ s *" /> & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; / Analyzer & gt; & Lt; Analyzer type = "query" & gt; & Lt; Tokenizer class = "solr.StandardTokenizerFactory" /> & Lt; Filter class = "solr.ShingleFilterFactory" minShingleSize = "2" maxShingleSize = "5" Output Unigrams = "false" Output UnigramsIfNoShingles = "true" tokenSeparator = "" /> & Lt ;! - & lt; Ignore the filter class = "solr.KeepWordFilterFactory" = "keepwords.txt" = "true" EditActivity = "incorrect" /> - & gt; & Lt; Filter class = "solr.LowerCaseFilterFactory" /> & Lt; / Analyzer & gt; & Lt; / FieldType & gt; & Lt; / Type & gt;  

Since you have empty spaces in the text string, it should be with double quotation marks Be sure to fill in all the so:

q = thd_keyphrase: "Find any social media"

Also, do you want to collapse the field on commas?


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -