RE: short search terms

2012-09-26 Thread Edward W. Rouse
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

Re: short search terms

2012-09-26 Thread Chris Hostetter
: 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

RE: short search terms

2012-09-26 Thread Edward W. Rouse
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

Re: short search terms

2012-09-26 Thread Arjen van der Meijden
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

short search terms

2012-09-26 Thread Edward W. Rouse
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

RE: Lucene 4.0 PerFieldAnalyzerWrapper question

2012-09-26 Thread Mike O'Leary
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

Re: Lucene in Corpus Linguistics

2012-09-26 Thread Glen Newton
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

Lucene in Corpus Linguistics

2012-09-26 Thread Carsten Schnober
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