lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] Updated: (LUCENE-1424) Add ConstantScorePrefixQuery and ConstantScoreWildcardQuery
Date Mon, 03 Nov 2008 17:12:44 GMT


Mark Miller updated LUCENE-1424:

    Attachment: LUCENE-1424.patch

Heres an early review patch.

I switched range and prefix to use multiterm query, but its debatable if thats necessary.
Prob a few clock cycles slower, and the benefits are slim beyond overall code design niceness
(which counts a lot to me <g>). Just not sure every mutlitermquery would want to have
to implement a constantscore version, and the amount of code reuse saved is low (it could
do a bit more with something like getFilteredEnum, but thats not much either).


look over
some comments maybe
some tests for the constant score versions
rangequery is not as expressive as constantscorequery, which can have separate inclusive/exclusive

When I was talking about deprecating constantscorequery being awkward, its wasnt really in
the implementation sense (i think we can leave it as is), but more the deprecating one of
the newest queries already :) Still don't consider that a huge deal though.

> Add ConstantScorePrefixQuery and ConstantScoreWildcardQuery
> -----------------------------------------------------------
>                 Key: LUCENE-1424
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>            Reporter: Mark Miller
>            Assignee: Michael McCandless
>            Priority: Minor
>         Attachments: LUCENE-1424.patch, LUCENE-1424.patch, LUCENE-1424.patch
> If we want to be able to highlight these queries, they need to be added to Lucene core
or contrib (solr's WildCardFilter can be used to create the ConstantScoreWildcardQuery). They
are very useful anyway.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message