SEARCHBOX
, but give preference to documents where the query terms appear near each other. This parse mode behaves identically to SEARCHBOX
, except for the case where there are multiple tokens but no query operators (e.g. "dog cat"). In this case, documents whose fields contain the tokens in order will rank highest, followed by documents containing the tokens near each other, followed by documents that simply contain all the tokens. If query operators are present, this mode behaves the same as SEARCHBOX
. You may only use PREFER_PROXIMITY
mode for one TextQuery
in a single query request, since it affects the global ranking of results. PTSTextQueryParseMode Class | com.plumtree.server.search Namespace