Ticket #1796 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

NOT boolean operator isn't supported

Reported by: gracinet Assigned to: gracinet
Priority: P1 Milestone: CPS 3.4.4
Component: Lucene Version: TRUNK
Severity: normal Keywords:
Cc:

Description

therefore, there's no way to make a negative query on a field, either as a standalone or multi-clause query.

Change History

12/12/06 17:53:54 changed by gracinet

  • status changed from new to closed.
  • resolution set to fixed.

Done !

  • in NXLucene server [50555] (inadvertantly checked in as ogrisel). Works also for purely negative queries.
  • in nuxeo.lucene, this uses the standard 'condition' key of the search_fields dicts
  • CPSLuceneCatalog API [50556] is, e.g, searchResults(status={'query': 'hidden', 'insert_condition': 'NOT'}) to get all docs whose status index doesn't match 'hidden'.

Will also forward other conditions, like 'OR'

  • in CPSDashboards [50557]: all filter widgets now have a "insertion_boolean_op" to leverage this (useful with Lucene Catalog Widget only, at this point). "internal_boolean_op" is planned, but wouldn't be transmitted down the stack.