lucene-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/LUCENE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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).

TODO:

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
ends.


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: https://issues.apache.org/jira/browse/LUCENE-1424
>             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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message