Phrase search with ComplexPhraseQueryParser/SpanQueryParser.

2014-03-04 Thread Modassar Ather
Hi, Phrases with stop words in them are not getting searched whereas a phrase without it gets searched using ComplexPhraseQueryParser/SpanQueryParser. SpanQueryParser reference: https://issues.apache.org/jira/browse/LUCENE-5205 The similar search works fine with classic parser which uses PhraseQ

how to enumerate all strings within distance 2?

2014-03-04 Thread Robert Servensen
Hello, If I want to print out all strings within distance 2 of a given string, how do I do it? I'm totally new to Lucene, so below are some parts that I'm starting to assemble. Any tips are welcome. (Note, I'm not trying to index or search through any particular document--I really just want to enu

Re: encoding problem when retrieving document field value

2014-03-04 Thread G.Long
Hi :) I found the source of the problem. It is indeed the input string. It comes from a csv export from a relational database. The inputStream of this csv file was encoded with the wrong charset (ISO8859-1 instead of CP1252). So the right single quote was returned as this character correspond