Package globus.glsearch
Class GLSearchFilter
java.lang.Object
globus.glmap.GLNativeObject
globus.glsearch.GLSearchFilter
A filter that narrows down results returned by
GLSearch.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds tag to search filtervoidaddTagHash(int tagHash) Adds a tag using its hash.voidAdds additional tags to search filterstatic GLSearchFiltercreateWithCategory(GLSearchCategory category) Creates a filter that matches objects of a specific category.static GLSearchFiltercreateWithQuery(String query) Creates a filter that searches objects for the givenquery.static GLSearchFiltercreateWithQuery(String query, int tagSetMask) Creates a filter that searches forqueryinside predefined tag sets.static GLSearchFiltercreateWithQueryAndTag(String query, String tag) Creates a filter that searches forqueryinside a single tag.voidsetMatchType(int matchType) Sets how the query string should be matched against object values.Methods inherited from class globus.glmap.GLNativeObject
dispose
-
Method Details
-
createWithQuery
Creates a filter that searches objects for the givenquery.Defaults: tag set =
GLSearch.TagSetMask.ALL, match type =GLSearch.MatchType.WORD_START.- Parameters:
query- part of a word, a whole word, or a phrase to search- Returns:
- filter instance
-
createWithQueryAndTag
@NonNull public static GLSearchFilter createWithQueryAndTag(@NonNull String query, @NonNull String tag) Creates a filter that searches forqueryinside a single tag.- Parameters:
query- part of a word, a whole word, or a phrase to searchtag- tag to test- Returns:
- filter instance
-
createWithQuery
Creates a filter that searches forqueryinside predefined tag sets.- Parameters:
query- part of a word, a whole word, or a phrase to searchtagSetMask- tag set mask (seeGLSearch.TagSetMask)- Returns:
- filter instance
-
createWithCategory
Creates a filter that matches objects of a specific category.- Parameters:
category- Category- Returns:
- filter instance
-
addTagHash
public void addTagHash(int tagHash) Adds a tag using its hash. Tag hashes can be found in a vector object returned from search or found on map.- Parameters:
tagHash- Hash of the tag
-
addTag
Adds tag to search filter- Parameters:
tag- Tag
-
addTags
Adds additional tags to search filter- Parameters:
tags- Tags array
-
setMatchType
public void setMatchType(int matchType) Sets how the query string should be matched against object values.Default match type is
GLSearch.MatchType.WORD_START.- Parameters:
matchType- match type
-