lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: Boost Single Values in Field
Date Wed, 20 Feb 2008 17:03:27 GMT
You have two options:

1. Boost the term on the query side.  The query parser pretty much  
takes exactly the syntax you use.
2. Use Payloads along with the BoostingTermQuery.

Search the archives for info on one or both.

-Grant

On Feb 20, 2008, at 11:30 AM, JensBurkhardt wrote:

>
> Hey,
>
> I'm wondering if you can boost single values and not the whole field.
> For example:
> i'm having a field called test with "value1 value2 value3" - all  
> packed in a
> String - and
> i want to boost specific values e.g value1^0.5 value2^1.5 etc.
> The problem is that i can't seperate this field. I don't think this  
> will
> work but maybe someone has had the
> same problem.
> Trying to search took me nowhere :-) so i decided to just ask and  
> maybe i'm
> lucky.
>
> Greetings
> Jens
> -- 
> View this message in context: http://www.nabble.com/Boost-Single-Values-in-Field-tp15591373p15591373.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>




--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com
http://www.lucenebootcamp.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ





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


Mime
View raw message