Class TurLuceneQueryBuilder
java.lang.Object
com.viglet.turing.lucene.TurLuceneQueryBuilder
Builds Lucene
Query objects from TurSNSiteSearchContext and
TurSEParameters, including filter queries (for facet selections) and
returns the list of facet-enabled fields.- Since:
- 2026.1
- Author:
- Alexandre Oliveira
-
Constructor Summary
ConstructorsConstructorDescriptionTurLuceneQueryBuilder(TurSNSiteFieldExtRepository turSNSiteFieldExtRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.QuerybuildQuery(TurSNSite turSNSite, TurSEParameters params) Builds the primary LuceneQueryfrom the search context.org.apache.lucene.search.QuerybuildWildcardQuery(TurSNSiteSearchContext context, TurSNSite turSNSite, TurSEParameters params) Builds a wildcard-appended version of the query (for no-results fallback).getFacetFields(TurSNSite turSNSite) Returns the list of enabled facet fields for the given site.getFacetFields(TurSNSite turSNSite, String facetName) Returns facet fields limited to a single named facet (used byretrieveFacetResults).
-
Constructor Details
-
TurLuceneQueryBuilder
-
-
Method Details
-
buildQuery
Builds the primary LuceneQueryfrom the search context. Includes the user's query string and any active filter queries. -
getFacetFields
Returns the list of enabled facet fields for the given site. -
getFacetFields
Returns facet fields limited to a single named facet (used byretrieveFacetResults). -
buildWildcardQuery
public org.apache.lucene.search.Query buildWildcardQuery(TurSNSiteSearchContext context, TurSNSite turSNSite, TurSEParameters params) Builds a wildcard-appended version of the query (for no-results fallback).
-