You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by poeta simbolista <po...@gmail.com> on 2007/02/06 18:13:21 UTC
deviations
Hi,
I would like to query results, regarding results.
For example, get those results whose field "size" is 2 standard deviations
from the median.
It looks like sth I should do myself, processing results first, getting the
median, and then calculate that threshold and perform a new query. Is it
however, sth there that may help with that?
Thank you
--
View this message in context: http://www.nabble.com/deviations-tf3181792.html#a8829971
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
Re: deviations
Posted by poeta simbolista <po...@gmail.com>.
Thank you very much.
Actually, I said size as an example, as i could have said any other field:
the thing has to work for any numerical field. That means, I cannot
special-case the problem.
Cheers
Grant Ingersoll-6 wrote:
>
> Have a look at the FieldSelector stuff, assuming you are using trunk
> or some recent nightly build. It _may_ help w/ what you are doing.
> Also, I would think you could calculate the median at indexing time
> (or just after), but I'm not sure I fully understand what you are
> trying to do, so take that w/ a grain of salt.
>
> You may find https://issues.apache.org/jira/browse/LUCENE-762
> useful. It hasn't been committed, but will be before 2.1 (so you
> will have to apply the patch too) Also, don't worry about the
> discussion of the internals, the patch as submitted by Chuck is good
>
> You will have to calculate your deviations separately, but the field
> size info should help.
>
> -Grant
>
>
> On Feb 6, 2007, at 12:13 PM, poeta simbolista wrote:
>
>>
>> Hi,
>> I would like to query results, regarding results.
>> For example, get those results whose field "size" is 2 standard
>> deviations
>> from the median.
>>
>> It looks like sth I should do myself, processing results first,
>> getting the
>> median, and then calculate that threshold and perform a new query.
>> Is it
>> however, sth there that may help with that?
>>
>> Thank you
>> --
>> View this message in context: http://www.nabble.com/deviations-
>> tf3181792.html#a8829971
>> 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
> Center for Natural Language Processing
> http://www.cnlp.org
>
> Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/
> LuceneFAQ
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/deviations-tf3181792.html#a8844729
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
Re: deviations
Posted by Grant Ingersoll <gs...@apache.org>.
Have a look at the FieldSelector stuff, assuming you are using trunk
or some recent nightly build. It _may_ help w/ what you are doing.
Also, I would think you could calculate the median at indexing time
(or just after), but I'm not sure I fully understand what you are
trying to do, so take that w/ a grain of salt.
You may find https://issues.apache.org/jira/browse/LUCENE-762
useful. It hasn't been committed, but will be before 2.1 (so you
will have to apply the patch too) Also, don't worry about the
discussion of the internals, the patch as submitted by Chuck is good
You will have to calculate your deviations separately, but the field
size info should help.
-Grant
On Feb 6, 2007, at 12:13 PM, poeta simbolista wrote:
>
> Hi,
> I would like to query results, regarding results.
> For example, get those results whose field "size" is 2 standard
> deviations
> from the median.
>
> It looks like sth I should do myself, processing results first,
> getting the
> median, and then calculate that threshold and perform a new query.
> Is it
> however, sth there that may help with that?
>
> Thank you
> --
> View this message in context: http://www.nabble.com/deviations-
> tf3181792.html#a8829971
> 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
Center for Natural Language Processing
http://www.cnlp.org
Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/
LuceneFAQ
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org