Opened 13 years ago

Closed 13 years ago

#480 closed enhancement (fixed)

LuceneQueryBuilder improvements

Reported by: fxp Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.7.0
Component: General Version: v2.6.3
Keywords: Cc:

Description

LuceneQueryBuilder is use to create a Lucene query from a LuceneQueryInput representing a search request.

Differences with previous implementation :

  • all search criteria could have more than one value (AND operator is used)
  • non tokenized field could use the " or " separator to create an OR query (eg. for keyword, use Global or biodiversity)
  • all search criteria are take into account (not only the one declared in UserQueryInput)
  • extra search fields are considered as text (and are analyzed according to Lucene index configuration)

It allows to add new search criteria without changing the Java source (like when using lucene.xsl) for key-value field search (not range query).

Compatibility : Client interface need to update digital/paper/interactive search parameters to use correct query. "on" is replace to "true". The new LQB does not have logic such as if digital=on&paper=on then search for all !

Change History (1)

comment:1 by fxp, 13 years ago

Milestone: Future releasev2.7.0
Resolution: fixed
Status: newclosed

Committed revision 7503.

Note: See TracTickets for help on using tickets.