Re: filter by term frequency

2012-06-16 Thread Jack Krupansky
If you were a *Solr* user, I could say "try the 'termfreq' function query": termfreq(field,term) returns the number of times the term appears in the field for that document. Example Syntax: termfreq(text,'memory') See: http://wiki.apache.org/solr/FunctionQuery#tf Lucene does have "Funct

filter by term frequency

2012-06-16 Thread Mike Sokolov
I imagine this is a question that comes up from time to time, but I haven't been able to find a definitive answer anywhere, so... I'm wondering whether there is some type of Lucene query that filters by term frequency. For example, suppose I want to find all documents that have exactly 2 occ

Re: RAMDirectory unexpectedly slows

2012-06-16 Thread Cheng
After a number of test, the performance of MMapDirectory is not even close to that of RAMDirectory, in terms of speed. My application w/ the former can only deal with 10 tasks per round while it could handle over 90 w/ RAMDirectory. I use the application in Linux. What can be the reasons? Thank