lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patel mrugesh <patelmruge...@yahoo.co.in>
Subject Phrase Query - Increment Position
Date Mon, 01 Jun 2015 10:59:56 GMT
Hi,
I am facing an issue with phrase query and increment Position. I have tried following queries
and although there were data, 0 result returned.
2) Search Query --> name:"at&t inc"     Parsed Query --> +name:"at&t inc"
     Result return  = 0     Term Vector = 
   

   No.                                         
Term                         Position                  Offset    
1                                             at&t                               
0                          0-4     2              
                               inc                                
2                          5-8     3                                              
t                                    1            
             3-4 



    Changed query to  -->  name:"at&t t inc"        Parsed Query -->    
+name:"at&t t inc"    Result return  = 1

One more thing while indexing I am using following WordDelimiterFilter.
GENERATE_WORD_PARTS 
SPLIT_ON_NUMERICS
PRESERVE_ORIGINAL
However while searching not using any of the above to get more accurate result.

All above is done using Lucene_4_10_3  (using StandardAnalyzerand  StandardQueryParser) 
and "name" is TextField with stored = true.

Please help.
Thanks,Mrugesh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message