public class ConstantScorePrefixQuery extends Object
PrefixQueryinstances that doesn't rewrite into a
BooleanQuerywith all matching
termsin the field. This query returns a constant score equal to its boost for all documents with the matching prefix term.
This can be significantly cheaper and faster if there are a lot of matching terms. It is very slightly slower if the number of matched terms is one or two.
|Constructor and Description|
|Modifier and Type||Method and Description|
Copyright © 2002-2015 Atlassian. All Rights Reserved.