public enum SearchType extends Enum<SearchType>
Enum Constant and Description |
---|
EXACT
Exact search types are usually meant for applications filtering index content for some exact filtering condition
even in a "future proof" way (example with packaging "maven-archetype" vs "foo-archetype-maven").
|
SCORED
Scored search types are usually meant for human query input, where loose-matching and result ranking is
happening.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matchesIndexerField(IndexerField field) |
static SearchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchType SCORED
public static final SearchType EXACT
public static SearchType[] values()
for (SearchType c : SearchType.values()) System.out.println(c);
public static SearchType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean matchesIndexerField(IndexerField field)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.