Solr exact search with blank character AND a wildcard

空扰寡人 提交于 2019-12-12 03:33:41

问题


I got a problem with solr search. I want to search a string with a blank character within and a wildcard in the end. the only way that i found was to put the string in quotes. but if I do like this and i can´t put a wildcard in the end.

so is there any way i can search for "foo bar"* ?

thanks for any hint!


回答1:


you can try escaping the white space field:foo\ bar*

Wildcard Queries :-
Note that wildcards are not supported within quoted phrases. They will be treated as if they were white space.



来源:https://stackoverflow.com/questions/14749688/solr-exact-search-with-blank-character-and-a-wildcard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!