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-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. Shou

Re: Can I do boosting based on term postions?

2007-08-16 Thread vini
hanks, >> > > > > > > Shailendra Sharma, >> > > > > > > CTO, Ver se' Innovation Pvt. Ltd. >> > > > > > > Bangalore, India >> > > > > > > >> > > > > > > On 8/1/07, Cedric Ho <[EMAIL PROTECTED]>

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 PROT

Re: Can I do boosting based on term postions?

2007-08-03 Thread Shailendra Sharma
Ah, Good way ! On 8/4/07, Paul Elschot <[EMAIL PROTECTED]> wrote: > > 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 >

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

Re: Can I do boosting based on term postions?

2007-08-03 Thread Shailendra Sharma
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 able to do something like following: a) Give 100% boosting to ma

Re: Can I do boosting based on term postions?

2007-08-03 Thread Paul Elschot
Cedric, You can choose the end limit for SpanFirstQuery yourself. Regards, Paul Elschot On Friday 03 August 2007 05:38, Cedric Ho wrote: > 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

Re: Can I do boosting based on term postions?

2007-08-02 Thread Shailendra Sharma
I am doing implementation of SpanTermQuery for you, give me today. Sorry, I was out for meetings for 2 days. Enjoy, Shailendra On 8/3/07, Cedric Ho <[EMAIL PROTECTED]> wrote: > > Hi Paul, > > Isn't SpanFirstQuery only match those with position less than a > certain end position? > > I am rather l

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 Elschot

Re: Can I do boosting based on term postions?

2007-08-02 Thread Paul Elschot
Cedric, SpanFirstQuery could be a solution without payloads. You may want to give it your own Similarity.sloppyFreq() . Regards, Paul Elschot On Thursday 02 August 2007 04:07, Cedric Ho wrote: > Thanks for the quick response =) > > On 8/1/07, Shailendra Sharma <[EMAIL PROTECTED]> wrote: > > Yes

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

Re: Can I do boosting based on term postions?

2007-07-31 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 (

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 luce