You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by B0DYLANG <ra...@yahoo.com> on 2009/06/26 10:31:33 UTC

customizing lucene formula

Dears,

i want to add some arguments to the lucene formula or override it, is there
a mean of doing so ? thanks for your  response.
-- 
View this message in context: http://www.nabble.com/customizing-lucene-formula-tp24216772p24216772.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


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


Re: customizing lucene formula

Posted by B0DYLANG <ra...@yahoo.com>.


Grant Ingersoll-6 wrote:
> 
> See the Payloads functionality along with the BoostingTermQuery.
> 
> 
> On Jun 28, 2009, at 6:23 PM, B0DYLANG wrote:
> 
>>
>> Thanks for your response, what i want to do is to add a function  
>> like the log
>> to the well know lucene formula, this function will take its  
>> argument from
>> the alredy indexed data, for example if we add a field like this
>>
>> new Field("terms","word,100;word,300",....);
>> so when the score returned the second word will have higher score  
>> from the
>> first one
>>
>>
>>
>> Grant Ingersoll-6 wrote:
>>>
>>> The source code is available.  I'd start with the Similarity class  
>>> and
>>> see if it can be used.  Before that, however, you might describe what
>>> it is you are interested in doing.  Perhaps there is an alternate way
>>> that doesn't involve editing the source.
>>>
>>>
>>> On Jun 26, 2009, at 4:31 AM, B0DYLANG wrote:
>>>
>>>>
>>>> Dears,
>>>>
>>>> i want to add some arguments to the lucene formula or override it,
>>>> is there
>>>> a mean of doing so ? thanks for your  response.
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/customizing-lucene-formula-tp24216772p24216772.html
>>>> Sent from the Lucene - Java Developer mailing list archive at
>>>> Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>>
>>>
>>> --------------------------
>>> Grant Ingersoll
>>> http://www.lucidimagination.com/
>>>
>>> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
>>> using Solr/Lucene:
>>> http://www.lucidimagination.com/search
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/customizing-lucene-formula-tp24216772p24246152.html
>> Sent from the Lucene - Java Developer mailing list archive at  
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
> 
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
> 
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
> using Solr/Lucene:
> http://www.lucidimagination.com/search
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/customizing-lucene-formula-tp24216772p24267670.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


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


Re: customizing lucene formula

Posted by Grant Ingersoll <gs...@apache.org>.
See the Payloads functionality along with the BoostingTermQuery.


On Jun 28, 2009, at 6:23 PM, B0DYLANG wrote:

>
> Thanks for your response, what i want to do is to add a function  
> like the log
> to the well know lucene formula, this function will take its  
> argument from
> the alredy indexed data, for example if we add a field like this
>
> new Field("terms","word,100;word,300",....);
> so when the score returned the second word will have higher score  
> from the
> first one
>
>
>
> Grant Ingersoll-6 wrote:
>>
>> The source code is available.  I'd start with the Similarity class  
>> and
>> see if it can be used.  Before that, however, you might describe what
>> it is you are interested in doing.  Perhaps there is an alternate way
>> that doesn't involve editing the source.
>>
>>
>> On Jun 26, 2009, at 4:31 AM, B0DYLANG wrote:
>>
>>>
>>> Dears,
>>>
>>> i want to add some arguments to the lucene formula or override it,
>>> is there
>>> a mean of doing so ? thanks for your  response.
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/customizing-lucene-formula-tp24216772p24216772.html
>>> Sent from the Lucene - Java Developer mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>
>> --------------------------
>> Grant Ingersoll
>> http://www.lucidimagination.com/
>>
>> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
>> using Solr/Lucene:
>> http://www.lucidimagination.com/search
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/customizing-lucene-formula-tp24216772p24246152.html
> Sent from the Lucene - Java Developer mailing list archive at  
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


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


Re: customizing lucene formula

Posted by B0DYLANG <ra...@yahoo.com>.
Thanks for your response, what i want to do is to add a function like the log
to the well know lucene formula, this function will take its argument from
the alredy indexed data, for example if we add a field like this

new Field("terms","word,100;word,300",....);
so when the score returned the second word will have higher score from the
first one



Grant Ingersoll-6 wrote:
> 
> The source code is available.  I'd start with the Similarity class and  
> see if it can be used.  Before that, however, you might describe what  
> it is you are interested in doing.  Perhaps there is an alternate way  
> that doesn't involve editing the source.
> 
> 
> On Jun 26, 2009, at 4:31 AM, B0DYLANG wrote:
> 
>>
>> Dears,
>>
>> i want to add some arguments to the lucene formula or override it,  
>> is there
>> a mean of doing so ? thanks for your  response.
>> -- 
>> View this message in context:
>> http://www.nabble.com/customizing-lucene-formula-tp24216772p24216772.html
>> Sent from the Lucene - Java Developer mailing list archive at  
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
> 
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
> 
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
> using Solr/Lucene:
> http://www.lucidimagination.com/search
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/customizing-lucene-formula-tp24216772p24246152.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


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


Re: customizing lucene formula

Posted by Grant Ingersoll <gs...@apache.org>.
The source code is available.  I'd start with the Similarity class and  
see if it can be used.  Before that, however, you might describe what  
it is you are interested in doing.  Perhaps there is an alternate way  
that doesn't involve editing the source.


On Jun 26, 2009, at 4:31 AM, B0DYLANG wrote:

>
> Dears,
>
> i want to add some arguments to the lucene formula or override it,  
> is there
> a mean of doing so ? thanks for your  response.
> -- 
> View this message in context: http://www.nabble.com/customizing-lucene-formula-tp24216772p24216772.html
> Sent from the Lucene - Java Developer mailing list archive at  
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search


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