Re: RegexQuery Incomplete Results

2009-05-12 Thread Seid Mohammed
> Field.Index.NOT_ANALYZED)); >>>>>>>writer.addDocument(doc); >>>>>>> } >>>>>>> writer.optimize(); >>>>>>> writer.close(); >>>>>>> >>>>>>> >>>>>>> >

Re: RegexQuery Incomplete Results

2009-05-12 Thread Mark Miller
xample, if my records are "Knowing yourself" and "Old clinic", the correct search would return 2 matches, but it only matches with "Knowing yourself". How could I fix this?

Re: RegexQuery Incomplete Results

2009-05-12 Thread Ian Lea
;>>>>> Any ideas? >>>>>> >>>>>> Thank you so much!! >>>>>> >>>>>> >>>>>> >>>>>> Steven A Rowe wrote: >>>>>>> >>>>>>> On 5/8/

Re: RegexQuery Incomplete Results

2009-05-12 Thread Seid Mohammed
r to the beginning of the pattern, so if >>>>>> Huntsman84 >>>>>> is using the default implementation, then I agree with Ian: I'm >>>>>> surprised >>>>>> it matches either. >>>>>> >>>>>> However, the Jakarta Reg

Re: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
lementation (the default RegexQuery >>>>> implementation) actually uses Matcher.lookingAt(), which is equivalent >>>>> to >>>>> prepending a "^" anchor to the beginning of the pattern, so if >>>>> Huntsman84 >&g

Re: RegexQuery Incomplete Results

2009-05-11 Thread Ian Lea
using the Jakarta Regexp implementation?  If so, >>>> then >>>> like you, I'm surprised it's not matching both :). >>>> >>>> It would be useful to see some real code, including how you index your >>>> records. >>>>

Re: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
ould be useful to see some real code, including how you index your >>> records. >>> >>> Steve >>> >>>> On Fri, May 8, 2009 at 1:42 PM, Huntsman84 >>>> wrote: >>>> > >>>> > Hi, >>>> > >>>> > I am using RegexQuery for searching in a set of records wich are >

Re: RegexQuery Incomplete Results

2009-05-11 Thread Ian Lea
e.g. "in"). For that case, >>> > I am building the query with the regular expression ".in.", so it >>> > should return all phrases with contain "in", but the search only >>> > matches

RE: RegexQuery Incomplete Results

2009-05-11 Thread Huntsman84
first word of the phrase. >> > >> > For example, if my records are "Knowing yourself" and "Old >> > clinic", the correct search would return 2 matches, but it only >> > matches with "Knowing yourself". >> > >> &g

RE: RegexQuery Incomplete Results

2009-05-08 Thread Steven A Rowe
On 5/8/2009 at 9:13 AM, Ian Lee wrote: > I'm surprised that it matches either - don't you need ".*in" where .* > means match any character zero or more times? See the javadoc for > java.util.regex.Pattern, or for Jakarta Regexp if you are using that > package. > > Unless you're an expert in regex

Re: RegexQuery Incomplete Results

2009-05-08 Thread Ian Lea
I'm surprised that it matches either - don't you need ".*in" where .* means match any character zero or more times? See the javadoc for java.util.regex.Pattern, or for Jakarta Regexp if you are using that package. Unless you're an expert in regexps it is probably worth playing with them outside y

Re: RegexQuery Incomplete Results

2009-05-08 Thread Erick Erickson
e phrase. > > For example, if my records are "Knowing yourself" and "Old clinic", the > correct search would return 2 matches, but it only matches with "Knowing > yourself". > > How could I fix this? > -- > View this message in context: >

RegexQuery Incomplete Results

2009-05-08 Thread Huntsman84
ow could I fix this? -- View this message in context: http://www.nabble.com/RegexQuery-Incomplete-Results-tp23445235p23445235.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: java-u