lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schrader" <schra...@evendi.de>
Subject AW: AND on two weighted fields
Date Wed, 21 Aug 2002 10:05:48 GMT
How about:
+((field1:(+token1 +token2 +token3)^2 field2:(+token1 +token2 +token3))

Christian
> -----Urspr√ľngliche Nachricht-----
> Von: Clemens Marschner [mailto:cmad@lanlab.de]
> Gesendet: 21 August 2002 11:50
> An: Lucene Developers List
> Betreff: AND on two weighted fields
>
>
> I need to perform an AND query on two fields and weight the results
> according to in which fields the results came from. That is, I would need
> something like
>
>    (field1^2 OR field2^1):(+token1 +token2 +token3)
>
> This means that _all_ of the tokens _have_ to occur in either one of these
> fields, and if they are found in field1, the results are weighted higher.
>
> Any ideas on how this can be accomplished?
>
> Clemens
>
>
>
> --------------------------------------
> http://www.cmarschner.net
>
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message