lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Powers" <jpow...@configureone.com>
Subject RE: get results by relevance, limiting results and then sort the results by some criterion
Date Tue, 21 Feb 2006 18:11:02 GMT
It seems to me that the "X" then is a problem for you.. like you said
"coming up with the X" is hard.     Maybe you want another tag then.
We call those ones you are trying to not return "related items" on our
search system.    So you do a search that has +related:0   or something
like that.    

Then you can return only primary products instead of "bolts & screws"
and other ancillary items.

And you don't have to use an arbitrary number to achieve what you want
ideally.       I imagine that the number "x" would differ greatly
between product lines as well.       Then you have "pen" and "pencil".
A search for "pen" would bring back both "product lines", but you don't
want to limit them to either the 300 for the pens or the 300 for the
pencils.   So in this case you'll get back all the primary pens and
pencils, which makes sense.

-----Original Message-----
From: Mufaddal Khumri [mailto:mkhumri@allegromedical.com] 
Sent: Tuesday, February 21, 2006 12:02 PM
To: java-user@lucene.apache.org
Subject: Re: get results by relevance, limiting results and then sort
the results by some criterion

In my case when we search for lets say cameras , my top x results are
all sorts of cameras and then i get documents that match camera casings
etc.

As a company we want to show as many cameras as possible and not other 
camera
related products for this one web view on a specific page we have. On 
this same page
we also want to provide a way that the user can select "price high to 
low" or price low to high" and sort these top x results. Essentially the

hard part is to come up with the X so that you ideally dont prune any 
cameras.
As a business we want to strive to get as many cameras in the search 
results, but at the same time we dont mind if a few cameras do not 
appear in those results if we can really fine tune our search results to

only show cameras and not camera casings and camera batteries etc.

I have been looking at QueryFilter and the Sort API, but havent yet 
figured out a way to do what I am trying to do .. any pointers are 
greatly appreciated.

-Thanks,

John Powers wrote:

>I'm sure you've taken care of this, but I am curious myself:
>
>If the 301 document only has a single term "batteries" (and thus is so
>far low on the Hits), but has a price of seven cents, then the sort of
>all the documents with "batteries" would put this near the top, but by
>eliminating all documents above 300, this one doesn't appear in the
>solution you are working for, correct?    Why is that a good thing?
>It seems you would want to sort on the full document list, and then
>return on the 300 top that you want the user to see.      
>
>I think I'm just curious why getting rid of some that could (in a new
>sort) be of higher relevance is a good thing.
>
>-----Original Message-----
>From: Mufaddal Khumri [mailto:mkhumri@allegromedical.com] 
>Sent: Tuesday, February 21, 2006 10:33 AM
>To: java-user@lucene.apache.org
>Subject: get results by relevance, limiting results and then sort the
>results by some criterion
>
>When I do a search for example on "batteries" i get 1200+ results. I 
>would like to show the user lets say 300. I can do that by only 
>extracting the first 300 hits (sorted by decreasing relevance by 
>default) and displaying those to the user.
>
>Now on the search results page, I have a drop down box that lets the 
>user sort the results by price. When the user selects the "Sort by
price
>
>low to high", i would like to be able to sort the same 300 hits I got 
>above (sorted by decreasing relevance by default) by price.
>
>Essentially I want to be able to sort the first 300 relevant search 
>results by price. (in other words I would like to be able to get search

>results by relevance, limit the results and sort the results by some 
>criterion).
>
>What would be a good way to do this in lucene?
>
>-Thanks.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message