Hi - this is a task for Solr's spellchecker component. Even though
misspelled "dialblo" gives results (due to misspelled content), the
spellchecker component can still spellcheck the input and come up with a
suitable spellchecked suggestion.

Regards,
Markus

[1] https://solr.apache.org/guide/8_11/spell-checking.html

Op wo 29 nov 2023 om 12:48 schreef Raj Krishna <rkris...@sandvine.com>:

> Hi Team,
>
>
>
> Search is not providing me results. Please check the below example
>
>
>
> When I search for “diablo”, its giving me results and logs
>
>
>
>
>
> 2023-11-29 11:07:21.839 INFO  (qtp1311844206-227) [   x:drupalcollection]
> o.a.s.c.S.Request [drupalcollection]  webapp=/solr path=/select
> params={f.ss_name_1.facet.limit=-1&facet.field={!key%3Dss_name+ex%3Dfacet:name}ss_name&facet.field={!key%3Dss_name_2+ex%3Dfacet:name_2}ss_name_2&facet.field={!key%3Dss_name_1+ex%3Dfacet:name_1}ss_name_1&
> json.nl
> =flat&f.ss_name.facet.missing=false&TZ=America/Toronto&fl=ss_search_api_id,ss_search_api_language,score,hash&f.ss_name_2.facet.limit=-1&start=0&f.ss_name_1.facet.missing=false&facet.missing=false&sort=sort_X3b_en_field_version_number+desc,ds_created+desc,score+desc,its_field_product+asc,its_field_release+asc&fq=(%2Bbs_status:"true"+%2Bss_type:"book")&fq=%2Bindex_id:solr_index&fq=ss_search_api_language:("en"+"und")&rows=12&f.ss_name.facet.limit=-1&f.ss_name_2.facet.missing=false&q={!boost+b%3Dboost_document}++{!payload_score+f%3Dboost_term+v%3D"diablo"+func%3Dmax}+(tm_X3b_en_body:("
> diablo")^1+tm_X3b_und_body:("*diablo*")^1+tm_X3b_en_title:("diablo
> ")^8+tm_X3b_und_title:("*diablo*")^8)&facet.limit=10&omitHeader=true&facet.mincount=1&wt=json&facet=true&facet.sort=count}
> hits=*861* status=0 QTime=2
>
>
>
>
>
> When I search for “dialblo”, it’s not giving me any results and logs
>
>
>
>
>
> 2023-11-29 10:54:20.899 INFO  (qtp1311844206-221) [   x:drupalcollection] 
> o.a.s.c.S.Request [drupalcollection]  webapp=/solr path=/select 
> params={f.ss_name_1.facet.limit=-1&facet.field={!key%3Dss_name+ex%3Dfacet:name}ss_name&facet.field={!key%3Dss_name_2+ex%3Dfacet:name_2}ss_name_2&facet.field={!key%3Dss_name_1+ex%3Dfacet:name_1}ss_name_1&json.nl=flat&f.ss_name.facet.missing=false&TZ=America/Toronto&fl=ss_search_api_id,ss_search_api_language,score,hash&f.ss_name_2.facet.limit=-1&start=0&f.ss_name_1.facet.missing=false&facet.missing=false&sort=sort_X3b_en_field_version_number+desc,ds_created+desc,score+desc,its_field_product+asc,its_field_release+asc&fq=(%2Bbs_status:"true"+%2Bss_type:"book")&fq=%2Bindex_id:solr_index&fq=ss_search_api_language:("en"+"und")&rows=12&f.ss_name.facet.limit=-1&f.ss_name_2.facet.missing=false&q={!boost+b%3Dboost_document}++{!payload_score+f%3Dboost_term+v%3D"dialblo"+func%3Dmax}+(tm_X3b_en_body:("dialblo")^1+tm_X3b_und_body:("dialblo")^1+tm_X3b_en_title:("dialblo")^8+tm_X3b_und_title:("dialblo")^8)&facet.limit=10&omitHeader=true&facet.mincount=1&wt=json&facet=true&facet.sort=count}
>  hits=0 status=0 QTime=0
>
>
>
>
>
> Though both the words are present in my same content.
>
>
>
> Can you suggest why this issue is showing up? How to debug this? and how
> to fix this?
>
>
>
> Note that everything is indexed
>
>
>
> I have attached config.zip file also
>
>
>
> Thanks
>
> Raj
>
> *Disclaimer:*
> This communication (including any attachments) is intended for the use of
> the intended recipient(s) only and may contain information that is
> considered confidential, proprietary, sensitive and/or otherwise legally
> protected. Any unauthorized use or dissemination of this communication is
> strictly prohibited. If you have received this communication in error,
> please immediately notify the sender by return e-mail message and delete
> all copies of the original communication. Thank you for your cooperation.
>

Reply via email to