Opened 14 years ago

Closed 14 years ago

#374 closed enhancement (fixed)

More efficient wildcard-only queries

Reported by: heikki Owned by: heikki
Priority: trivial Milestone: v2.6.2
Component: General Version: v2.6.1
Keywords: Cc:

Description

When you do a query that has only *, it results in the following Lucene query:

GUI: +ConstantScore(any:*) +(_op0:1 _op0:0) +_isTemplate:n

CSW: +(+*:* +_isTemplate:n) +(_op0:1 _op0:0)

This is functionally equivalent to doing a completely empty query (return all results you're allowed to view), which both for the GUI and CSW creates this query which is much more efficient in very large indexes:

+(_op0:1 _op0:0) +_isTemplate:n

It is desired to add logic to convert wildcard-only queries to the empty query, before creating the Lucene query.

Change History (1)

comment:1 by heikki, 14 years ago

Resolution: fixed
Status: newclosed

committed to 2.6.x and trunk

Note: See TracTickets for help on using tickets.