Class CategorySearchConnector
java.lang.Object
io.meeds.social.category.storage.elasticsearch.CategorySearchConnector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringTerm query of the searched text on the name of the locale, analyzed by the field's search analyzer so that the tokens searched are the ngram tokens the index holds, every token required. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale) search(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, List<Long> categoryIds, Locale locale) search(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale)
-
Field Details
-
TERM_QUERY
Term query of the searched text on the name of the locale, analyzed by the field's search analyzer so that the tokens searched are the ngram tokens the index holds, every token required. A text with no token matches nothing. The text is written in a JSON string only, so no character of it is query syntax.- See Also:
-
OWNER_ID_QUERY
- See Also:
-
PARENT_ID_QUERY
- See Also:
-
PERMISSIONS_QUERY
- See Also:
-
IDS_QUERY
- See Also:
-
SORT_QUERY_BY_NAME
- See Also:
-
SORT_QUERY_BY_SCORE
- See Also:
-
-
Constructor Details
-
CategorySearchConnector
public CategorySearchConnector()
-
-
Method Details
-
search
-
search
public List<Long> search(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, List<Long> categoryIds, Locale locale) - Parameters:
filter- search filteridentityIds- identities of the user, used for link permissionscategoryIds- when not null, only these categories may matchlocale- locale of the searched and sorted name- Returns:
- the matching category ids
-
count
-