Re: Which terms in the query match

2007-10-18 Thread Chris Hostetter

: 1. Query for a set of terms against a field - 
: 2. do a second query on the results of the first query for the terms
: that did not match in the first query against another field.

i'm a little confused as to what exactly the point of this would be ... 
mainly because phrases like query on the results of the first query are 
vague ... it's also not clear what terms that did not match are ... if i 
search for foo:bar foo:baz and get back two documents, one containing 
foo:bar and one containing foo:baz then does that mean all the terms 
matched, or that none of the terms matched (since none of them were in 
*all* the documents returned ... are you attempting to narrow the results 
further in the second query (ie: get fewer hits) or just get better 
scoring?

my gut tells me that what you are trying to do is get a list of all 
documents that contain some words in an important field, and then add to 
that a list of all documents that match on the same word in a less 
important field, possibly in such a way that documents containing the word 
in both fields only get credit for hte important one...

...but i could just be reading a lot into your question since this is 
something i do all the time ... take a look at the DisMax handler and the 
Relevancy FAQ...

http://wiki.apache.org/solr/SolrRelevancyFAQ
http://wiki.apache.org/solr/DisMaxRequestHandler




-Hoss



Re: Which terms in the query match

2007-10-17 Thread Bertrand Delacretaz
On 10/16/07, Nishant Soni [EMAIL PROTECTED] wrote:

 ...So is there a way to query solr about which of the tokens in the query
 actually matched ?...

The analyzer admin page should help, see
http://wiki.apache.org/solr/FAQ#head-b25df8c8393bbcca28f1f344c432975002e29ca9

-Bertrand


Re: Which terms in the query match

2007-10-17 Thread Nishant Soni

Thanks for the tip but I guess I should have been more specific. I want
to do it programmatically on the fly and use those results in other
ways. 

Essentially what I want to do is this:

1. Query for a set of terms against a field - 
2. do a second query on the results of the first query for the terms
that did not match in the first query against another field.

I am thinking this should not be too uncommon a problem so maybe there
is something that I am missing.

thanks
nishant


--- Bertrand Delacretaz [EMAIL PROTECTED] wrote:

 On 10/16/07, Nishant Soni [EMAIL PROTECTED] wrote:
 
  ...So is there a way to query solr about which of the tokens in the
 query
  actually matched ?...
 
 The analyzer admin page should help, see

http://wiki.apache.org/solr/FAQ#head-b25df8c8393bbcca28f1f344c432975002e29ca9
 
 -Bertrand
 


-- 
www.reviewgist.com

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com