Results 1 to 3 of 3
- 08-22-2011, 07:45 AM #1
Member
- Join Date
- Aug 2011
- Posts
- 2
- Rep Power
- 0
Issue with StandardAnalyzer which splits single word with _(Lucene Version: 3.0)
Hello All,
I observed some unexpected behavior using StandardAnalyzer to parse the query. Here is the demonstration.
I am passing the query as (key:xyz_abc) && (text:blabla)
Expecting the parsed query to be +key:xyz_abc +text:blabla
Actual Result is +key:"xyz abc" +text:blabla
As per my understanding StandardAnalyzer splits the word boundaries into multiple words but the above word xyz_abc is a single word. Please correct me if i am wrong.
I also observed if number is there after underscore the parsed query is as expected. i.e
If i give the query as (key:xyz_1abc) && (text:blabla) the parsed query is +key:xyz_1abc +text:blabla
This is the behavior i am expecting.
Please help.
Thanks,
Srinivas
- 08-22-2011, 11:05 AM #2
Member
- Join Date
- Aug 2011
- Posts
- 2
- Rep Power
- 0
Please help... i am in urgency....
Thanks in advance,
srinivas
- 12-08-2011, 05:54 AM #3
Member
- Join Date
- Nov 2011
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Lucene issue
By drogba123 in forum LuceneReplies: 36Last Post: 03-21-2011, 09:21 AM -
java -version pointing to older version
By deepakts in forum New To JavaReplies: 4Last Post: 05-06-2010, 09:59 AM -
Help with my mess...using multiple delimiters and string splits...
By A5i19 in forum New To JavaReplies: 5Last Post: 11-04-2009, 02:25 AM -
JRE 1.5.0_6 version issue in java Applets
By raj_java in forum Java AppletsReplies: 1Last Post: 02-21-2009, 03:25 AM -
Issue with oracle driver version?
By nn12 in forum JDBCReplies: 1Last Post: 12-12-2008, 04:48 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks