Re: Too many results with RegexQuery

2009-05-19 Thread Huntsman84
ounds. And the FAQ. And Google. > > If this isn't what you are getting, please tell us *exactly* what you > are getting. > > > -- > Ian. > > > > On Tue, May 19, 2009 at 7:47 AM, Huntsman84 wrote: >> >> I mean "too many terms", excuse

Re: Too many results with RegexQuery

2009-05-18 Thread Huntsman84
he query expansion? > > > > -Original Message- > From: Huntsman84 > Reply-To: java-user@lucene.apache.org > To: java-user@lucene.apache.org > Subject: Too many results with RegexQuery > Date: Mon, 18 May 2009 09:07:27 -0700 (PDT) > > Hi, > > I am usin

Too many results with RegexQuery

2009-05-18 Thread Huntsman84
Hi, I am using RegexQuery aiming to get a list of records from a regular expression, but in some cases the search returns too many results, and for that my program throws an Exception. How could I customize the query or the searcher to, for example, get just a set of results? Thank you so much!

Re: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
;, > qx.getRegexImplementation()); > for (RegexCapabilities rcap : rcaps) { > System.out.println(rcap); > for (String s : queries) { > Term t = new Term("text", s); > RegexQuery q = new RegexQuery(t); >

Re: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
t; > > -- > Ian. > > > On Mon, May 11, 2009 at 9:00 AM, Huntsman84 wrote: >> >> This is the code for searching: >> >> String index = "index"; >> String field = "contents"; >> IndexReader reader = IndexReader.open(index);

RE: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
to start with e.g. with simple >> String.matches(regexp) calls. They can take some getting used to. >> And try to avoid anything with backslashes if you can! > > The java.util.regex.Pattern implementation (the default RegexQuery > implementation) actually uses Matcher.looking

RegexQuery Incomplete Results

2009-05-08 Thread Huntsman84
Hi, I am using RegexQuery for searching in a set of records wich are phrases of several words each. My aim is to find any phrase that contains the given group of letters (e.g. "in"). For that case, I am building the query with the regular expression ".in.", so it should return all phrases with co

Re: Missing RegexQuery class

2009-05-05 Thread Huntsman84
It was in contrib, thank you! Ian Lea wrote: > > You can find them in the source tarball. And maybe elsewhere > (contrib?) but I'm not sure about that. > > > -- > Ian. > > > On Tue, May 5, 2009 at 9:40 AM, Huntsman84 wrote: >> >>

Missing RegexQuery class

2009-05-05 Thread Huntsman84
Hi, Does anybody know why at lucene API documentation you can find the package regex and its classes (RegexQuery, RegexTermEnum, SpanRegexQuery...), but they don't exist in the jar (so you can't use them)? Can I find them somewhere? Thank you so much! -- View this message in context: http://w

Re: Searching for partial matches

2009-05-04 Thread Huntsman84
are. Search the archive for > ngram (or n-gram) for lots of discussion on that topic. > > Anyway, something to think about. > > Best > Erick > > On Mon, May 4, 2009 at 12:48 PM, Huntsman84 wrote: > >> >> My aim is to handle * phrases *, as you say, but I d

Re: Searching for partial matches

2009-05-04 Thread Huntsman84
ur search. Constructing > Filters is quite fast, although you lose the wildcarded > terms' contributions to the score (don't worry about this > last IMO). > > > Best > Erick > > On Mon, May 4, 2009 at 11:21 AM, Huntsman84 wrote: > >> >> Hi &

Re: Searching for partial matches

2009-05-04 Thread Huntsman84
ere is an entry on wildcards in the FAQ. See > also RegexQuery and search the mailing lists for ngrams. > > Depending on your setup and requirements you may need to be aware of > the performance implications of wild card searching, particularly > leading wildcards as will be

Searching for partial matches

2009-04-30 Thread Huntsman84
Hello, I am new to Lucene, and I don't know if it is possible to obtain results providing part of the keyword. For example, if I try to search "in", it should return all matches with "string", "meaning", "trinity"... Am I expecting too much? Thank you so much! -- View this me