Issue 2808: Lucene search is not working with special characters in Gerrit 2.9
Status:  Duplicate
Merged:  issue 2822
Owner: ----
Closed:  Dec 2014
Project Member Reported by bassem.rabil, Jul 31, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: Gerrit 2.9

What steps will reproduce the problem?
1. Create a new change #1 with message KEYWORD1 in test-project1
2. Create a new change #2 with message KEYWORD2 in test-project1
3. Create a new change #3 with message KEYWORD1_KEYWORD2 in test-project1


4. Try to search using web UI search box :
project:test-project1 message:KEYWORD1_KEYWORD2
OR project:test-project1 message:"KEYWORD1_KEYWORD2"
OR "project:test-project1 message:{KEYWORD1_KEYWORD2}

This returns no changes using Gerrit 2.9

What is the expected output? What do you see instead?
The expected search result should show: change #3 only


Please provide any additional information below.
Searching for message=KEYWORD1 message:KEYWORD2 shows the three changes #1, #2, #3. However the main objective is to show only changes with "KEYWORD1_KEYWORD2".
Aug 11, 2014
Project Member #2 bassem.rabil
After further investigation, this issue turned out to be an issue with matching the search keyword with part of words in the message using lucene search. For example, if you have message with msg_KEYWORD1_KEYWORD2_msg text, you have to pass the keyword as "msg_KEYWORD1_KEYWORD2_msg" to get such change in your search results. This used to work when indexing was based on DB before Gerrit 2.8. 

I opened a new issue to track this at:
https://code.google.com/p/gerrit/issues/detail?id=2822

You can close this ticket for now in favor of the new issue opened with more accurate description.
Dec 28, 2014
Project Member #3 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 2822