miki_haiat
(miki haiat)
December 6, 2021, 7:49pm
1
Hey i want to query text that include white space as single term for example los angeles
I've tried some of Lucene options but fetch wrong docs.
"query": "Los \\ Ange*"
"query": "Los* Ange*",
"query": "Los \"AND \" Ange",
What is the correct way to search term with whitespace ?
Jay_Miller
(Jay Miller)
December 13, 2021, 7:20pm
2
@miki_haiat ,
Are you searching Workplace Search or App Search/Site Search?
If using App Search there are a few things to keep in mind but the simplest solution would be "query": "\"Los Angeles\""
.
There are some other ways you can get a higher accuracy (see relevance tuning ) but wrapping in quotes seems to be the query-specific solution.