cancel
Showing results for 
Search instead for 
Did you mean: 

How can i remove the categories from solr search but later i can be able to add this category

Former Member
0 Kudos

Hi Experts, When we search in the search box for any category it will display search related categories but in that I want to remove the one category from the solr search in the search box component ,but later i wanted to add ,so only in the search box i wanted to remove. so how can i achieve this could you please any one help me . Many Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mithlesh - are you looking to prevent the category being indexed in the first place ?

Former Member
0 Kudos

Hi Steve, Thank you for your reply.

Yes ..in the list of category details i want to prevent one category , and also can you please tell me how can solr decides the order for the search result(list of categories) in the search box when we search .

Thanks

Former Member
0 Kudos

Any update on this ...

Former Member
0 Kudos

So to summarize. You have an autosuggestions fearture that will show you list of categories when you enter a search term? It will suggest categories, phrases, products or only categories? Or you are referring to a category facet that is being shown after executing a search? Do you only want to remove a category from the list or you also want to exclude products from this category to be returned? Which hybris version?

Former Member
0 Kudos

Hi Grzgorz, yes you are right , i want to remove only one category from that list and we are using hybris 6.2 version. and if possible tell me how solr decides the order for this where we can find the config, i think there is property "spellcheck.onlyMorePopular" is this defines or any other config is there to define the order of those list of categories in the search box.

Thanks,

Answers (3)

Answers (3)

former_member628401
Participant
0 Kudos

Hi Guys,

If i want to completely remove one particular category and its associated product from eCommerce site and from Solr Search .

then how i can do.........is the same ways you have already mentioned.

Could you please provide me impex script to remove one particular category and its associated all products from eCommerce site and Solr Search.

Its very helpful for me .

Thanks in advance .......

Regards,

Former Member
0 Kudos

Hi , For your information i found here how the order displays in the search box when we search something and i changed the property "spellcheck.onlyMorePopular" to false as they mentioned in the below link but i couldnt get the results as alphabetically after changed it to false also there is no change in the results, can you check if it helps https://wiki.apache.org/solr/Suggester/

And Thanks for your valuable time to given for me

Former Member
0 Kudos

I changed that in the /suggest request handler and restarted the solr server. I was succesfull with that:

and:

Former Member
0 Kudos

then are you able to see the changed the orders , can you please attach any screen shot i have done the same thing but not changing the order. Many Thanks

Former Member
0 Kudos

But we are not using "spellcheck.dictionary=suggest" instead of suggest dictionary we are using default is this matters

Former Member
0 Kudos

Yes see the screens

and

Former Member
0 Kudos

you need to change here

 <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
         <lst name="defaults">
             <str name="spellcheck">true</str>
             <str name="spellcheck.dictionary">default</str>
             <str name="spellcheck.onlyMorePopular">true</str>
             <str name="spellcheck.count">5</str>
             <str name="spellcheck.collate">true</str>
         </lst>
         <arr name="components">
             <str>suggest</str>
         </arr>
     </requestHandler>



Former Member
0 Kudos

could you post a picture of the category list you are referring to? by default there is no category search, only spellchecking and product search. Product search can be configured in hybris, spellcheking order needs to be configured on the solr server level

Former Member
0 Kudos

Hi Grzgorz, we are using custom categories,if you know how to remove for the product search then tell me , and also can you please tell me how can solr decides the order of those results,please Many Thanks

Former Member
0 Kudos

well i cannot help you much here, if its a spellchecker then you need to play with it. https://lucene.apache.org/solr/guide/6_6/spell-checking.html