Project

General

Profile

Actions

Task #2707

closed

OpenGrok: Using wildcard as first character of a search impossible after recent update

Added by Johnny M over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


Description

Before the recent OpenGrok re-indexing, it was possible to use a wild card "*" at the beginning of a search string. Now, it is no longer possible.

Test steps:
1. Open following link (searching for merk on the core repository): https://opengrok.libreoffice.org/search?project=core&q=*merk*&defs=&refs=&path=&hist=&type=

Expected results:
1. Search results are returned. (As was the case earlier.)

Actual results:
1. "Error message from parser:
Cannot parse '*merk*': '*' or '?' not allowed as first character in WildcardQuery"

Note: According to OpenGrok help under https://opengrok.libreoffice.org/help.jsp , the use of wildcards at beginning of a search string can be enabled using indexer option -a. I guess that the enabling was missed on the recent OpenGrok update.

Thanks in advance!

Actions #1

Updated by Guilhem Moulin over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Guilhem Moulin

AFAICT the indexer option is in fact `--leadingWildcards`, and it's indeed off by default. We might have to trigger another (offline) full re-index to support this.

Actions #2

Updated by Guilhem Moulin over 5 years ago

  • Status changed from In Progress to Closed

Fixed

Actions

Also available in: Atom PDF