Red Hat Bugzilla – Bug 805324
Lucene syntax for searches in promotion section is not working correctly
Last modified: 2014-09-18 11:32:56 EDT
Description of problem:
In the promotions section, if you choose Product --> Packages and then search using name:foo nothing is returned. If you search using name: foo (note the space after the colon), then the equivalent of foo* is returned.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Searching for name: foo should only return perfect matches for packages with name foo.
Note to self:
In app controller (working correctly) we do:
but in promotion packges (not working) we do:
notice the swap of the ! char
few changes here:
Change to use default field instead of analysing if the user used a special char or not. Made package name be a keyword analyzed field. Created new field for auto complete called 'name_autocomplete' that is analyzed with the special ngramming made for auto complete. Improved autocomplete to do a maximum of 20 grams (up from 10).
QA Verified using a google chrome repo
Search for "goo" returns nothing
Search for "goo*" returns valid results
Search for "goo " returns nothing
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.