lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [Lucene.Net] [jira] [Commented] (LUCENENET-415) Contrib/Faceted Search
Date Fri, 20 May 2011 20:18:47 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037061#comment-13037061
] 

Digy commented on LUCENENET-415:
--------------------------------

Here is the documentation of the code:)

{code}
SimpleFacetedSearch sfs = new SimpleFacetedSearch(_Reader, "cat");
Query query = new QueryParser("text", new StandardAnalyzer()).Parse("block*");
SimpleFacetedSearch.Hits hits = sfs.Search(query);

long totalHits = hits.TotalHitCount;
foreach (SimpleFacetedSearch.HitsPerGroup hpg in hits.HitsPerGroup)
{
    long hitCountPerGroup = hpg.HitCount;
    foreach (Document doc in hpg)
    {
        string text = doc.GetField("text").StringValue();
    }
}
{code}

DIGY

> Contrib/Faceted Search
> ----------------------
>
>                 Key: LUCENENET-415
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-415
>             Project: Lucene.Net
>          Issue Type: New Feature
>    Affects Versions: Lucene.Net 2.9.4
>            Reporter: Digy
>            Priority: Minor
>         Attachments: SimpleFacetedSearch.cs, TestSimpleFacetedSearch.cs
>
>
> Since I see a lot of questions about faceted search in these days, I plan to add a Faceted-Search
project to contrib.
> DIGY

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message