简体   繁体   中英

Solr Searching - Using Query

I have some documents with titles like "Red And Carpet" , "Red and Blue","Blue And Red","Red In White","Blue in Red".

I want to perform search against the title for the following keyword "Blue Red".It should return the documents where both Blue and Red Words are available. According to Above to titles it should return "Red and Blue", "Blue And Red", "Blue in Red". Documents

ANy Clues on this ?

Search it like this:

q=title:+blue AND title:+red

您应该使用AND查询: title:(Blue AND Red)

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