Re: Finding frequency of regex query match in a field

2010-01-15 Thread Altimatic
gt;> RegexQuery query = new RegexQuery( newTerm("data", "^T.*)); >> ScoreDoc[] hits = searcher.search(query, null, >> maxNumOfHits).scoreDocs;//grab the score docs and go through them to find >> the documents that contain a match >> >> //***

Finding frequency of regex query match in a field

2010-01-15 Thread Altimatic
m to find the documents that contain a match //* The code above will tell me that both doc1 and doc2 contain a match for the constructed query. However I need to know how many times the regular expression was matched in each document. ie. do

Re: Finding frequency of regex query match in a field

2010-01-15 Thread Simon Willnauer
score docs and go through them to find > the documents that contain a match > > //* > > > The code above will tell me that both doc1 and doc2 contain a match for the > constructed query. > > However I need to know how m

Re: Finding frequency of regex query match in a field

2010-01-15 Thread Altimatic
I forgot to mention that I am using Lucene 3.0.0. -- View this message in context: http://old.nabble.com/Finding-frequency-of-regex-query-match-in-a-field-tp27175303p27175915.html Sent from the Lucene - Java Users mailing list archive at Nabble.com

Finding frequency of regex query match in a field

2010-01-15 Thread Altimatic
m to find the documents that contain a match //* The code above will tell me that both doc1 and doc2 contain a match for the constructed query. However I need to know how many times the regular expression was matched in each document. ie. do