- 🇩🇰Denmark ressa Copenhagen
There's the page Activate the spellcheck 'Did you mean...?' functionality → , but after following the directions, I get no suggestions.
On a view with a fulltext exposed filter and the spellcheck field placed in the view header, I'm getting an empty set when typing a word with typo. For example the word "differ" appears in many node bodies and works if is correct spelled. But if I enter the word with a typo: like "difer", I'm getting an empty result (this is expected) but no suggestions. I expect, at least, "differ" to be suggested.
My install:
I'm attaching the configs of the server, index and view.
Below, the search_api_solr_devel
output:
Try to send Solr request => admin/ping?omitHeader=true&wt=json&json.nl=flat
GET => Array
(
[omitHeader] => Array
(
[0] => true
)
[wt] => Array
(
[0] => json
)
[json.nl] => Array
(
[0] => flat
)
)
Received Solr response => 200 OK
Try to send Solr request => select?omitHeader=false&echoParams=all&wt=json&json.nl=flat&q=%7B%21boost+b%3Dboost_document%7D%28tm_X3b_en_body%3A%28%2B%22difer%22%29%5E1+tm_X3b_und_body%3A%28%2B%22difer%22%29%5E1+tm_X3b_zxx_body%3A%28%2B%22difer%22%29%5E1%29&start=0&rows=10&fl=ss_search_api_id%2Css_search_api_language%2Cscore%2Chash&fq=%2Bindex_id%3Ai1&fq=ss_search_api_language%3A%28%22en%22+%22und%22+%22zxx%22%29&spellcheck=true&spellcheck.q=difer&spellcheck.dictionary=en&spellcheck.count=1&spellcheck.collate=true&debugQuery=true&debug.explain.structured=true&rq=%7B%21rerank+reRankQuery%3D%27+%7B%21payload_score+f%3Dboost_term+v%3D%22difer%22+func%3Dmax%7D%27%7D
GET => Array
(
[omitHeader] => Array
(
[0] => false
)
[echoParams] => Array
(
[0] => all
)
[wt] => Array
(
[0] => json
)
[json.nl] => Array
(
[0] => flat
)
[q] => Array
(
[0] => {!boost b=boost_document}(tm_X3b_en_body:(+"difer")^1 tm_X3b_und_body:(+"difer")^1 tm_X3b_zxx_body:(+"difer")^1)
)
[start] => Array
(
[0] => 0
)
[rows] => Array
(
[0] => 10
)
[fl] => Array
(
[0] => ss_search_api_id,ss_search_api_language,score,hash
)
[fq] => Array
(
[0] => +index_id:i1
[1] => ss_search_api_language:("en" "und" "zxx")
)
[spellcheck] => Array
(
[0] => true
)
[spellcheck.q] => Array
(
[0] => difer
)
[spellcheck.dictionary] => Array
(
[0] => en
)
[spellcheck.count] => Array
(
[0] => 1
)
[spellcheck.collate] => Array
(
[0] => true
)
[debugQuery] => Array
(
[0] => true
)
[debug.explain.structured] => Array
(
[0] => true
)
[rq] => Array
(
[0] => {!rerank reRankQuery=' {!payload_score f=boost_term v="difer" func=max}'}
)
)
Received Solr response => 200 OK
Solr Debug Output => Array
(
[queryBoosting] => Array
(
[q] => (tm_X3b_en_body:(+"difer")^1 tm_X3b_und_body:(+"difer")^1 tm_X3b_zxx_body:(+"difer")^1)
[match] =>
)
[rawquerystring] => {!boost b=boost_document}(tm_X3b_en_body:(+"difer")^1 tm_X3b_und_body:(+"difer")^1 tm_X3b_zxx_body:(+"difer")^1)
[querystring] => {!boost b=boost_document}(tm_X3b_en_body:(+"difer")^1 tm_X3b_und_body:(+"difer")^1 tm_X3b_zxx_body:(+"difer")^1)
[parsedquery] => ReRankQuery({!rerank mainQuery='boost((+tm_X3b_en_body:difer)^1.0 (+tm_X3b_und_body:difer)^1.0 (+tm_X3b_zxx_body:difer)^1.0,float(boost_document))' reRankQuery='PayloadScoreQuery(boost_term:difer, function: MaxPayloadFunction, includeSpanScore: false)' reRankDocs=200 reRankWeight=2.0})
[parsedquery_toString] => {!rerank mainQuery='boost((+tm_X3b_en_body:difer)^1.0 (+tm_X3b_und_body:difer)^1.0 (+tm_X3b_zxx_body:difer)^1.0,float(boost_document))' reRankQuery='PayloadScoreQuery(boost_term:difer, function: MaxPayloadFunction, includeSpanScore: false)' reRankDocs=200 reRankWeight=2.0}
[explain] => Array
(
)
[QParser] => LuceneQParser
[boost_str] => boost_document
[boost_parsed] => org.apache.lucene.queries.function.valuesource.FloatFieldSource:float(boost_document)
[filter_queries] => Array
(
[0] => +index_id:i1
[1] => ss_search_api_language:("en" "und" "zxx")
)
[parsed_filter_queries] => Array
(
[0] => +index_id:i1
[1] => ss_search_api_language:en ss_search_api_language:und ss_search_api_language:zxx
)
[timing] => Array
(
[time] => 1
[prepare] => Array
(
[time] => 1
[query] => Array
(
[time] => 1
)
[facet] => Array
(
[time] => 0
)
[facet_module] => Array
(
[time] => 0
)
[mlt] => Array
(
[time] => 0
)
[highlight] => Array
(
[time] => 0
)
[stats] => Array
(
[time] => 0
)
[expand] => Array
(
[time] => 0
)
[terms] => Array
(
[time] => 0
)
[spellcheck] => Array
(
[time] => 0
)
[elevator] => Array
(
[time] => 0
)
[debug] => Array
(
[time] => 0
)
)
[process] => Array
(
[time] => 0
[query] => Array
(
[time] => 0
)
[facet] => Array
(
[time] => 0
)
[facet_module] => Array
(
[time] => 0
)
[mlt] => Array
(
[time] => 0
)
[highlight] => Array
(
[time] => 0
)
[stats] => Array
(
[time] => 0
)
[expand] => Array
(
[time] => 0
)
[terms] => Array
(
[time] => 0
)
[spellcheck] => Array
(
[time] => 0
)
[elevator] => Array
(
[time] => 0
)
[debug] => Array
(
[time] => 0
)
)
)
Fixed
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
There's the page Activate the spellcheck 'Did you mean...?' functionality → , but after following the directions, I get no suggestions.