Hi,all I use facet query,but I found it dose not work when using 'AND'.
I woud like to use facet query using 'AND' as not Operator but simple word. At first,Solr Config is as below. <searchComponent class="solr.SpellCheckComponent" name="suggest_ja"> <lst name="spellchecker"> <str name="name">suggest_dict</str> <str name="classname">solr.Suggester</str> <str name="lookupImpl">AnalyzingLookupFactory</str> <str name="field">suggest</str> <str name="storeDir">suggest_ja</str> <str name="buildOnStartup">true</str> <str name="buildOnCommit">true</str> <str name="suggestAnalyzerFieldType">text_ja_romaji</str> </lst> </searchComponent> <requestHandler name="/suggest_ja" class="solr.SearchHandler" startup="lazy"> <lst name="defaults"> <str name="df">suggest</str> <str name="q.op">AND</str> <str name="rows">0</str> <str name="omitHeader">true</str> <str name="facet">true</str> <str name="facet.field">suggest</str> <str name="facet.limit">1000</str> <str name="facet.mincount">1</str> <str name="spellcheck">true</str> <str name="spellcheck.dictionary">suggest_dict</str> <str name="spellcheck.count">10</str> <str name="spellcheck.collate">true</str> <str name="spellcheck.maxCollations">30</str> <str name="spellcheck.maxCollationTries">10</str> <str name="spellcheck.collateExtendedResults">true</str> </lst> <arr name="last-components"> <str>suggest_ja</str> </arr> </requestHandler> I executed the query below,but Solr gave unexpected result. $ curl "http://localhost:8983/solr/kms/suggest_ja?wt=json&indent=true&q=\"AND\"&facet=true" { "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[] }, "facet_counts":{ "facet_queries":{}, "facet_fields":{ "suggest":[]}, "facet_ranges":{}, "facet_intervals":{}, "facet_heatmaps":{}}, "spellcheck":{ "suggestions":[], "collations":[]}} I'd like to use facet search including the word "AND",so I surrounded "AND" by double quotes and then appended the escappe parameter befoe dobule quote as below. \"AND\" The Document included word "AND"(I have a pen AND an apple) is already indexed.The evidence is as below. $ curl "http://localhost:8983/solr/kms/select?wt=json&indent=true&q=\"AND\"" { "responseHeader":{ "zkConnected":true, "status":0, "QTime":9, "params":{ "q":"\"AND\"", "indent":"true", "wt":"json"}}, "response":{"numFound":1,"start":0,"maxScore":0.2770272,"docs":[ { "pub_date":"2017-03-09T12:34:56.789Z", "body":"I have a pen AND an apple", "title":"test", "url":"http://10.16.44.180:8080/#/management/two/", "system_cd":"hoge", "document_id":"001", "id":"hoge001", "content_type":"doc", "_version_":1577777862221496320}] }} Therefore I expected the result as below. { "response":{"numFound":1,"start":0,"maxScore":0.66747504,"docs":[] }, "facet_counts":{ "facet_queries":{}, "facet_fields":{ "suggest":[ "AND",1, "apple",1, "pen",1, ]}, "facet_ranges":{}, "facet_intervals":{}, "facet_heatmaps":{}}, "spellcheck":{ "suggestions":[], "collations":[]}} Actually facet fields includes nothing. How do I solve this? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html