We are using solr for search on our ecommerce site that primarily sells
clothing.  We index search terms based on a title field and description
field.  

We want to be able to sort by most relevant and what we have more inventory
(there is a field for that).  We have done some coding outside of Solr to
try and achieve this but it causes the following problem.

Let's take jeans and boots as an example.  A customer might search on boots
and solr returns a bunch of boots and jeans.  The jeans are included because
the description might contain some data like pant legs fits easily over
boots.  Now if we have more inventory in the particular jeans than the boots
solr returned, the user will get back a list that shows mostly jeans at top
and then somewhere down the list boots will show up.  

There isn't a problem with the jeans showing up but the boots should
actually be displayed first with the ones having the most inventory then the
jeans can be somewhere at the bottom of the list.

I want to eliminate the hacks that have been done to try to incorporate
inventory, i.e. have solr return the results and not manipulate it in code.

I hope I have explained the problem enough for you to get the gist of what I
am trying to accomplish.





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-sorting-and-relevance-tp4051918.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to