RE: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Ilya Zavorin
worked like a charm! thx! From: Jack Krupansky [j...@basetechnology.com] Sent: Thursday, June 14, 2012 3:30 PM To: java-user@lucene.apache.org Subject: Re: need to find locations of query hits in doc: works fine for regular text but not for phone

Re: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Jack Krupansky
-user@lucene.apache.org Subject: RE: need to find locations of query hits in doc: works fine for regular text but not for phone numbers Uwe, sorry but I am having trouble understanding this. Can you point me to a place in documentation that explains this in more detail (I've read

RE: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Ilya Zavorin
d) or some example code? Thanks much, Ilya -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Thursday, June 14, 2012 12:57 PM To: java-user@lucene.apache.org Subject: RE: need to find locations of query hits in doc: works fine for regular text but not for phone nu

Re: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Chris Hostetter
: Subject: need to find locations of query hits in doc: works fine for regular : text but not for phone numbers : Message-ID: : References: <1339635547170-3989548.p...@n3.nabble.com> : In-Reply-To: <1339635547170-3989548.p...@n3.nabble.com> https://people.apache.org/~hossman/#

RE: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Uwe Schindler
.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Ilya Zavorin [mailto:izavo...@caci.com] > Sent: Thursday, June 14, 2012 6:49 PM > To: java-user@lucene.apache.org > Subject: RE: need to find locations of query hit

RE: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-14 Thread Ilya Zavorin
ngs of the query reliably? Thanks! -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Wednesday, June 13, 2012 11:42 PM To: java-user@lucene.apache.org Subject: Re: need to find locations of query hits in doc: works fine for regular text but not for phone

Re: need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-13 Thread Jack Krupansky
the default field. -- Jack Krupansky -Original Message- From: Ilya Zavorin Sent: Wednesday, June 13, 2012 10:52 PM To: java-user@lucene.apache.org Subject: need to find locations of query hits in doc: works fine for regular text but not for phone numbers Hello All, I am using 3.4. I need t

need to find locations of query hits in doc: works fine for regular text but not for phone numbers

2012-06-13 Thread Ilya Zavorin
Hello All, I am using 3.4. I need to find locations of query hits in a document. What I've implemented works fine for textual queries but does not work for phone numbers. Here's how I index my docs: String oc = "Joe dialed 800-555-1212 but got a busy signal"; doc.add

Re: Query Hits

2011-08-05 Thread Ian Lea
> I am currently using lucene 2.4, Time to upgrade? > is there a way to count how many words from my query hits the post? > > Lets say my query is: > APPLE OR BANANA OR ORANGE > > > The post is: > I have a banana, i love to eat banana and apple > > This case

Query Hits

2011-08-04 Thread Tan Weijian
Hi , I am currently using lucene 2.4, is there a way to count how many words from my query hits the post? Lets say my query is: APPLE OR BANANA OR ORANGE The post is: I have a banana, i love to eat banana and apple This case, banana keyword is hit twice and apple is hit once, is there a way