Skip to Content

Search by name not working correctly ?

Hello,

When i do some search on any name on the products that i have , i can see other products coming not related to search that i did with the correct product . i just set names for the products there are no description and summary !

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2015 at 02:17 AM

    You mean product search of accelerator? This might be an effect of the fault tolerant search capabilities of Solr. Could you give an example?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 11, 2015 at 01:03 PM

    I have a grocery store and i want to do search on pepsi on the search box ! i wrote pepsi and i'm getting pepsi and other products not related to pepsi product and word ! So .. The search not match search word.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2015 at 10:50 AM

    You could try to set:

     log4j.logger.de.hybris.platform.solrfacetsearch=debug
    

    in local.properties to see what exactly Solr search is doing.

    You will see something like the following and could then analyze (and post here).

     DEBUG [hybrisHTTP4] [DefaultSolrQueryConverter] FIELDS : (ean_string:(pepsi^200.0 OR pepsi*^100.0)) OR (code_string:(pepsi^180.0 OR pepsi*^90.0)) OR (name_text_en:(pepsi^100.0 OR pepsi*^50.0 OR pepsi~^25.0)) OR (keywords_text_en:(pepsi^40.0 OR pepsi*^20.0 OR pepsi~^10.0)) OR (categoryName_text_en_mv:(pepsi^20.0 OR pepsi*^10.0 OR pepsi~^5.0))
     DEBUG [hybrisHTTP4] [DefaultSolrQueryConverter] FIELDS + QUERY: (ean_string:(pepsi^200.0 OR pepsi*^100.0)) OR (code_string:(pepsi^180.0 OR pepsi*^90.0)) OR (name_text_en:(pepsi^100.0 OR pepsi*^50.0 OR pepsi~^25.0)) OR (keywords_text_en:(pepsi^40.0 OR pepsi*^20.0 OR pepsi~^10.0)) OR (categoryName_text_en_mv:(pepsi^20.0 OR pepsi*^10.0 OR pepsi~^5.0))
     DEBUG [hybrisHTTP4] [DefaultFacetSearchService] Solr Query: 
     q=(ean_string:(pepsi^200.0 OR pepsi*^100.0)) OR (code_string:(pepsi^180.0 OR pepsi*^90.0)) OR (name_text_en:(pepsi^100.0 OR pepsi*^50.0 OR pepsi~^25.0)) OR (keywords_text_en:(pepsi^40.0 OR pepsi*^20.0 OR pepsi~^10.0)) OR (categoryName_text_en_mv:(pepsi^20.0 OR pepsi*^10.0 OR pepsi~^5.0))&spellcheck=true&spellcheck.dictionary=en&spellcheck.collate=true&spellcheck.q=pepsi&defType=edismax&bq=&fq=(((catalogId:"productCatalog") AND (catalogVersion:Online)))&start=0&rows=10&facet=true&facet.field=fit_string_mv&facet.field={!ex=fk6}type_en_string&facet.field={!ex=fk26}designationOfOrigin_en_string&facet.field={!ex=fk15}allPromotions_string_mv&facet.field={!ex=fk19}bagType_en_string&facet.field=categoryPath_string_mv&facet.field={!ex=fk16}gas_en_string&facet.field={!ex=fk17}typeOfCover_en_string&facet.field={!ex=fk12}provenance_en_string&facet.field={!ex=fk8}typeOfBookbinding_en_string&facet.field={!ex=fk2}headType_en_string&facet.field=allCategories_string_mv&facet.field={!ex=fk32}flameType_en_string&facet.field={!ex=fk25}inkType_en_string&facet.field={!ex=fk23}format_en_string&facet.field=color_string_mv&facet.field={!ex=fk28}size_en_string&facet.field={!ex=fk7}numberOfSections_en_string&facet.field={!ex=fk4}nicotineLevel_en_string&facet.field={!ex=fk31}typeOfSheets_en_string&facet.field={!ex=fk9}availableInStores_string_mv&facet.field={!ex=fk18}mechanism_en_string&facet.field={!ex=fk24}sugarLevel_en_string&facet.field={!ex=fk13}caffeineLevel_en_string&facet.field={!ex=fk3}manufacturerName_string&facet.field={!ex=fk5}numberOfMouthpieces_en_string&facet.field={!ex=fk22}materialType_en_string&facet.field={!ex=fk11}timeClassification_en_string&facet.field={!ex=fk20}typeOfCards_en_string&facet.field={!ex=fk27}mineralization_en_string&facet.field={!ex=fk0}alcoholLevel_en_string&facet.field={!ex=fk14}variety_en_string&facet.field={!ex=fk29}combustion_en_string&facet.field=category_string_mv&sort=score desc,inStockFlag_boolean asc,score asc,score desc&facet.mincount=1&facet.limit=50&facet.sort=count
     DEBUG [hybrisHTTP4] [DefaultFacetSortProvider] Resolved comparator for facet allCategories sorting : (reversed=false) class de.hybris.platform.solrfacetsearch.search.impl.comparators.FacetDisplayNameComparator
     DEBUG [hybrisHTTP4] [DefaultFacetSortProvider] Resolved comparator for facet manufacturerName sorting : (reversed=false) class de.hybris.platform.solrfacetsearch.search.impl.comparators.FacetDisplayNameComparator
     DEBUG [hybrisHTTP4] [DefaultFacetSearchService] Processing solr search result post-processor : class de.hybris.platform.solrfacetsearch.reporting.processors.SaveResultDataPostProcessor
     DEBUG [hybrisHTTP4] [SolrSearchResult] No facet with name [categoryPath] found. Return null.
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.