Sorry, finger trouble.  Should have been oal which is shorthand for
org.apache.lucene, so org.apache.lucene.search.TotalHitCountCollector.

http://lucene.apache.org/core/4_10_3/core/org/apache/lucene/search/TotalHitCountCollector.html


--
Ian.


On Fri, Feb 13, 2015 at 6:55 PM, Maisnam Ns <maisnam...@gmail.com> wrote:
> Thanks Ian for your help. But I didn't get aol search, what it is ? tried
> searching in google but couldn't find.
>
> Thanks
>
> On Fri, Feb 13, 2015 at 3:00 AM, Ian Lea <ian....@gmail.com> wrote:
>
>> I think you can do it with 4 simple queries:
>>
>> 1) +flying +shooting
>>
>> 2) +flying +fighting
>>
>> etc.
>>
>> or BooleanQuery equivalents with MUST clauses.  Use
>> aol.search.TotalHitCountCollector and it should be blazingly fast,
>> even if you have more that 100 docs.
>>
>>
>> --
>> Ian.
>>
>>
>> On Thu, Feb 12, 2015 at 5:42 PM, Maisnam Ns <maisnam...@gmail.com> wrote:
>> > Hi,
>> >
>> > Can someone help me with this use case.
>> >
>> > Use case: Say there are 4 key words 'Flying', 'Shooting', 'fighting' and
>> > 'looking' in100 documents to search for.
>> >
>> > Consider 'Flying' and 'Shooting' co- occurs (together) in 70 documents
>> > where as
>> >
>> > 'Flying and 'fighting' co- occurs in 14 documents
>> >
>> > 'Flying' and 'looking' co-occurs in 2 documents and so on.
>> >
>> > I have to list them in order or rather show them on a web page
>> > 1. Flying , Shooting -70
>> > 2. Flying , fighting - 14
>> > 3 Flying , looking -2
>> >
>> > How to achieve this and please tell me what kind of query is this
>> > co-occurrence frequency.
>> > Is this possible in Lucene.And how to proceed .
>> >
>> > Please help and thanks in advance.
>> >
>> > Regards
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to