I think so. I'll try to write up a quick demo app to see if it will work for
what I require.
Thanks for the prompt reply.
Simon Willnauer wrote:
>
> One way to do it is to use the RegexTermEnum and iterate through your
> terms manually.
>
> like the following pseudo code:
> te = RegexTermEnum
One way to do it is to use the RegexTermEnum and iterate through your
terms manually.
like the following pseudo code:
te = RegexTermEnum(reader, Term("^T.*"), regexpCapabilities)
while( te.next() ):
t = te.term()
td = reader.termDocs(t)
while(td.next()):
freqOfTermInCurrentDoc = td.freq(
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.
---