Class FullTextSearchRequest.Builder
java.lang.Object
dev.langchain4j.store.embedding.elasticsearch.FullTextSearchRequest.Builder
- Enclosing class:
FullTextSearchRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()The filter to be applied to theMetadataduring search.maxResults(Integer maxResults) The maximum number of results to return.The minimum relevance score.The text to search for.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
textQuery
The text to search for. This is a mandatory parameter. -
maxResults
The maximum number of results to return. This is an optional parameter. Default: 3 -
minScore
The minimum relevance score. Only results with a score >= minScore will be returned. Unlike vector search, full text search scores are not normalized: they are BM25 scores and can be greater than 1. This is an optional parameter. Default: 0 -
filter
The filter to be applied to theMetadataduring search. OnlyTextSegments whoseMetadatamatches theFilterwill be returned. This is an optional parameter. Default: no filtering -
build
-