Package lumis.portal.bigdata.query
Class DocumentLocaleClause
- java.lang.Object
-
- lumis.portal.bigdata.query.DocumentLocaleClause
-
- All Implemented Interfaces:
ISearchQueryFilter
@StableMinor(version="14.2", sinceVersion="8.1") public class DocumentLocaleClause extends Object implements ISearchQueryFilter
Clause to filter documents by their locale.
The matched documents must match one of the following rules:
-
Document
locale
equals to the target locale. -
Document
locale
does not match the target local, but it is thedefault document for missing locales
and there's noequivalent document
for the target locale. -
Document has no
locale
set.
- Since:
- 8.1.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
- See Also:
StandardDocument.Standard
,StandardDocumentType
-
-
Constructor Summary
Constructors Constructor Description DocumentLocaleClause(String targetLocale)
Creates a new instance.DocumentLocaleClause(Locale targetLocale)
Creates a new instance.
-
-
-
Constructor Detail
-
DocumentLocaleClause
public DocumentLocaleClause(Locale targetLocale)
Creates a new instance.- Parameters:
targetLocale
- the target locale.- Since:
- 8.1.0
-
DocumentLocaleClause
public DocumentLocaleClause(String targetLocale)
Creates a new instance.- Parameters:
targetLocale
- the target locale.- Since:
- 8.1.0
-
-
Method Detail
-
getTargetLocale
public String getTargetLocale()
Returns the target locale.- Returns:
- the target locale.
- Since:
- 8.1.0
-
-