Re: Can I do boosting based on term postions?

2007-12-18 Thread Peter Keegan
This is a nice alternative to using payloads and BoostingTermQuery. Is there any reason not to make this change to SpanFirstQuery, in particular: This modification to SpanFirstQuery would be that the Spans returned by SpanFirstQuery.getSpans() must always return 0 from its start() method. Should

Re: Can I do boosting based on term postions?

2007-12-18 Thread Paul Elschot
On Tuesday 18 December 2007 14:59:45 Peter Keegan wrote: Should I open a Jira issue? What shall I say? http://www.apache.org/foundation/how-it-works.html Regards, Paul Elschot - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Can I do boosting based on term postions?

2007-08-16 Thread vini
://www.nabble.com/Can-I-do-boosting-based-on-term-postions--tf4197947.html#a12180448 Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Can I do boosting based on term postions?

2007-08-05 Thread Cedric Ho
Paul, Hm..even being a Lucene newbie, I can understand your solution easily. Thanks =) Shailendra, Also thank you for your efforts in helping me to do this. I did learn a lot more about the inner working of lucene through your examples =) Thanks, Cedric On 8/4/07, Shailendra Sharma [EMAIL

Re: Can I do boosting based on term postions?

2007-08-03 Thread Paul Elschot
On Friday 03 August 2007 20:35, Shailendra Sharma wrote: Paul, If I understand Cedric right, he wants to have different boosting depending on search term positions in the document. By using SpanFirstQuery he will only be able to consider in terms till particular position; but he won't be

Re: Can I do boosting based on term postions?

2007-08-02 Thread Cedric Ho
Hi Paul, Isn't SpanFirstQuery only match those with position less than a certain end position? I am rather looking for a query that would score a document higher for terms appear near the start but not totally discard those with terms appear near the end. Regards, Cedric On 8/2/07, Paul

Re: Can I do boosting based on term postions?

2007-08-01 Thread Shailendra Sharma
Yes, it is easily doable through Payload facility. During indexing process (mainly tokenization), you need to push this extra information in each token. And then you can use BoostingTermQuery for using Payload value to include Payload in the score. You also need to implement Similarity for this

Re: Can I do boosting based on term postions?

2007-08-01 Thread Cedric Ho
Thanks for the quick response =) On 8/1/07, Shailendra Sharma [EMAIL PROTECTED] wrote: Yes, it is easily doable through Payload facility. During indexing process (mainly tokenization), you need to push this extra information in each token. And then you can use BoostingTermQuery for using

Can I do boosting based on term postions?

2007-07-31 Thread Cedric Ho
Hi all, I was wondering if it is possible to do boosting by search terms' position in the document. for example: search terms appear in the first 100 words, or first 10% words, or in first two paragraphs would be given higher score. Is it achievable through using the new Payload function in