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
>>
>> //***
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
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
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
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