Hi, I am facing an issue with phrase query having special character (like &, dot, comma, : etc). I have tried following queries and although there were data, 0 result returned.
1) Search Query --> name:"Pep:Trans vaccines, GSK" Parsed Query --> +name:"pep:trans vaccines gsk" Result return = 0 Term Vector = No. Term Freq. Position Offset 1 pep:trans 1 0 0-9 2 pep 1 0 0-3 3 trans 1 1 4-9 4 vaccines 1 2 10-18 5 gsk 1 3 20-23 Changed query to --> name:"at&t t inc" Parsed Query --> +name:"at&t t inc" Result return = 1 2) Search Query --> name:"at&t inc" Parsed Query --> +name:"at&t inc" Result return = 0 Term Vector = No. Term Freq. Position Offset 1 at&t 1 0 0-4 2 inc 1 2 5-8 3 t 1 1 3-4 Changed query to --> name:"pep:trans trans vaccines gsk" Parsed Query --> +name:"pep:trans trans vaccines gsk" Result return = 1 All above is done using Lucene_4_10_3 and StandardAnalyzer and "name" is TextField with stored = true. Please somebody can shed light on this. Thanks,Mrugesh