I have an index and one of the items to search for is an identifier that
will always be 3 characters, like ABC or XYZ. If I do a search for ABC I get
no matches. If I add 1 more character so that ABC becomes ABCD and search
for ABCD, it matches. I have been looking through the code (I inherited and
: I have a key field that will only ever have a length of 3 characters. I am
: using a StandardAnalyzer and a QueryParser to create the Query
: (parser.parse(string)), and an IndexReader and IndexSearcher to execute the
: query (searcher(query)). I can't seem to find a setter to allow for a 3
: ch
Sorry, I rarely work with Lucene and so far my requirements have been very
basic. I thought there would be a simple setting to override the default
minimum string length of 4 for a search string. It sounds like this isn't
possible and the only way is to recode the QueryParser and create a custom
Qu
Shouldn't your own application-logic handle this? Or do you want
complicated query-parsing where each and every token in the query is
always at most 3 characters long?
I don't know if there are any easier solutions, but you could subclass
the QueryParser and add your requirement to all the rel
I have a key field that will only ever have a length of 3 characters. I am
using a StandardAnalyzer and a QueryParser to create the Query
(parser.parse(string)), and an IndexReader and IndexSearcher to execute the
query (searcher(query)). I can't seem to find a setter to allow for a 3
character sea
Hi Chris,
So it sounds like instead of defining a new class that gets instantiated to
create an analyzer, I could just do this:
public class MyPerFieldAnalyzer {
public static Analyzer getMyPerFieldAnalyzer() {
Map analyzerMap = new HashMap();
analyzerMap.put("IDNumber", new KeywordAna
Yes, very interested.
--> Quick scan: very cool work! +10 :-)
Thanks,
Glen Newton
On Wed, Sep 26, 2012 at 9:59 AM, Carsten Schnober
wrote:
> Hi,
> in case someone is interested in an application of the Lucene indexing
> engine in the field of corpus linguistics rather than information retriev
Hi,
in case someone is interested in an application of the Lucene indexing
engine in the field of corpus linguistics rather than information
retrieval: we have worked on that subject for some time and have
recently published a conference paper about it:
http://korap.ids-mannheim.de/2012/09/kon