/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { Parser } from "../../types/senselogic/sitevision/api/search/searcher/component/Parser"; import type { Builder } from "../../types/senselogic/sitevision/api/base/Builder"; /** *
* Builder for creating a single-field {@link senselogic.sitevision.api.search.searcher.component.Parser} component with specific behaviour. *
* ** StandardParserBuilder has two optional attributes: *
*content.analyzed)
*
* * Using the StandardParserBuilder is pretty straightforward, if you remember that it is stateful. Conceptually you * would typically use it like this: *
*
* When you have built a Parser instance, you can re-use the StandardParserBuilder to build more instances. Typically like:
*
* Example of how this strategy could be implemented in Velocity: *
*
* ## Get the builder
* #set ($searchFactory = $sitevisionUtils.searchFactory)
* #set ($standardBuilder = $searchFactory.standardParserBuilder)
*
* ## Create a Parser
* #set ($nameFieldParser = $standardBuilder.setDefaultField('name.analyzed').build())
*
* ## Re-use the builder to create another Parser
* #set ($titleFieldParser = $standardBuilder.setDefaultField('title.analyzed').build())
*
*
* * Tip! The {@link senselogic.sitevision.api.base.Builder Builder interface documentation} contains * more information about Builders and how to work with them! *
* ** Solr note: the defType param for this parser is 'standard' or 'lucene' *
* *
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.search.SearchFactory#getStandardParserBuilder()}.
* See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the SearchFactory interface.
*
* Solr note: this is the 'df' param. *
* @param aDefaultField the name of the query field,null or whitespace-only values will be ignored
* @return this builder
*/
setDefaultField(aDefaultField: String | string): StandardParserBuilder;
/**
* Sets the query operator.
*
* * Solr note: this is the 'q.op' param. The value should typically be "AND" or "OR". *
* @param aQueryOperator the query operator, all values except [null, "AND", "OR"] will be ignored * @return this builder * @since Sitevision 4.0.2 */ setQueryOperator(aQueryOperator: String | string): StandardParserBuilder; /** * Creates a Parser component instance using currently specified state/behaviour. * @return a Parser component. */ build(): Parser; } declare namespace StandardParserBuilder {} declare var standardParserBuilder: StandardParserBuilder; export default standardParserBuilder;