Opened 6 hours ago

#844 new defect

Placeholders in phrases

Reported by: Olly Betts Owned by: Olly Betts
Priority: normal Milestone: 2.0.x
Component: Library API Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

We could provide a way to specify placeholders with OP_PHRASE, perhaps via an empty term being interpreted in this way in this context (which seems fairly natural as an empty term matches all documents). Or perhaps add a new OP_EXACT_PHRASE to support this case.

This would allow improved handling of phrases under QueryParser::STOP_ALL (see #750) and also allow supporting searching for things like "now is the * of our discontent" where * can be any word.

Need to think if this is also useful with OP_NEAR.

Marking for 2.0.x for now as this could be slotted in without breaking the ABI. Whether it actually happens then probably depends on the effort needed to implement it. Conceptually it seems fairly straightforward but I haven't reviewed the phrase matching code with this in mind yet.

Change History (0)

Note: See TracTickets for help on using tickets.