how to filter search by values that are not available

后端 未结 5 2382
逝去的感伤
逝去的感伤 2021-02-20 06:11

I have a list of items as:

i = SearchQuerySet().models(Item)

now, each item in i has a attribute, price

I wan

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-20 06:37

    Try this:

    -(-price:[300 TO 400] AND price:[* TO *])
    

    is logically the same and it works in Solr.

提交回复
热议问题