我很困惑,如何在SOLR搜索查询中使用AND-OR运算符。
在上面的网址中,我想进行如下查询:
HTML code:
<div> Food <!-- Main Category -->
<ul>
<li style="display:none"> Pizza </li> <!-- Category Child Item -->
<li style="display:none"> Falafel </li> <!-- Category Child Item -->
<li style="display:none"> Donuts </li> <!-- Category Child Item -->
<li style="display:none"> Burger </li> <!-- Category Child Item -->
<li style="display:none"> Cheese Sandwich </li> <!-- Category Child Item -->
</ul>
</div>
Require - HTML code output by javascript:
<div style="display:none"> Food <!-- Main Category -->
<ul>
<li style="display:none"> Pizza </li> <!-- Category Child Item -->
<li style="display:none"> Falafel </li> <!-- Category Child Item -->
<li style="display:none"> Donuts </li> <!-- Category Child Item -->
<li style="display:none"> Burger </li> <!-- Category Child Item -->
<li style="display:none"> Cheese Sandwich </li> <!-- Category Child Item -->
</ul>
</div>
或(category_name:kithcen AND reno_wall_colours:red)
。
答案 0 :(得分:0)
((category_name:kitchen OR bathroom)AND reno_wall_colours:red)