Rohit Balekundri created LUCENE-7932:
----------------------------------------
Summary: Search record with field value='a' or 'A' returns all
records along with one more field value
Key: LUCENE-7932
URL: https://issues.apache.org/jira/browse/LUCENE-7932
Project: Lucene - Core
Issue Type: Bug
Components: core/queryparser
Affects Versions: 6.6
Environment: Windows and Linux
Reporter: Rohit Balekundri
Fix For: Positions Branch, trunk, 6.6
1. I found all records are showing result if we pass value 'a' or 'A' as
search value along with either LocationCode=value OR CollectionObjectID=value.
Only seems to be happening for the character a. I feel it's having similar
issue in previous code as well. It's Lucene code after making query it's
returning all records.
2. We have two solutions for above existing problem.
a) Either to allow to show all records if user enters 'a' or 'A' in search
field.
b) Set value to "null" if user enters 'a' or 'A' in search field value and
don't show any records. Example: LocationCode=1 and Category='A' then it should
not show any records.
But this has side effect about if real record exist with same criteria then it
will not show that record.
c) Test with other new releases from Lucene and search. Currently I am
working on Lucene 6.6 to test search function.
But later i found even Lucene 6.6 is also having same bug.
This bug was found by onsite team.
It's very urgent to be fixed from Lucene team.
Kindly consider this bug on top priority.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]