Re: Number Proximity Query

2006-10-04 Thread Chris Hostetter
: Another quick question on the score. If my custom Query is returning a score : that can be any value, and this custom Query is being used together with : other standard Query in a BooleanQuery. How do I ensure the value return by : the custome Query doesnt 'overshadow' the values return by other

Re: Number Proximity Query

2006-10-04 Thread KEGan
Chris, thanks again for your reply. Really appreciate your help. Another quick question on the score. If my custom Query is returning a score that can be any value, and this custom Query is being used together with other standard Query in a BooleanQuery. How do I ensure the value return by the cu

Re: Number Proximity Query

2006-10-04 Thread Chris Hostetter
: (1) Should values returned by DocValues (return from ValueSource) must : always betwen 1.0 and 0.0 ? How is this value affect the overall document : scores, assuming there are others Query clauses as well that is perform on : the document (on other fields). The "values" returned by the various

Re: Number Proximity Query

2006-10-04 Thread KEGan
Erick, thanks for your reply. I have the LIA. But the sorting is not the solution I am looking for. As if I sort, I will lose out the relevancy from searches of other fields. I want the number proximity to be one in many of the fields that is searched. So the "num" field will contribute to the ov

Re: Number Proximity Query

2006-10-04 Thread Erick Erickson
Sorry if this is a re-post, but I got an "undeliverable" error last time I tried to post it, something about SPAM. The nerve of that filter! I don't have my book handy, but you might want to check out "Lucene In Action". There's an example of how to create an index of restaurants

Re: Number Proximity Query

2006-10-04 Thread KEGan
Thanks Chis. After spending half a day to "really" look into FunctionQuery (and related classes), and re-reading about Weight and Scorer. I think I am beginning to understand a bit. But more questions. (1) Should values returned by DocValues (return from ValueSource) must always betwen 1.0 and 0

Re: Number Proximity Query

2006-10-03 Thread Chris Hostetter
: >From my searches, there seems to be a FunctionQuery in Solr that can do this : type of query. But I am using pure Lucene, and trying to port Solr code over : (to create my own version of FunctionQuery) looks too complicated because of : code dependency on other Solr code such as ValueSource, et