简体   繁体   中英

Doing boolean OR query string in sunspot solr

I was just wondering if in sunspot solr we could do a search with the following logic:

keyword = orange OR red orange OR blue green

Thanks in advance for any inputs

keywords("orange red blue"){minimum_match 1} will search for keyword = orange or red or blue.

the sunspot fulltext docs have a couple other methods to alter your search.

It may be a little bit vague of an explanation now, but it seems that sunspot solr enables you to adjust the search params before querying solr itself. I would update this answer once I get some time on my hands to work on this problem again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM