Solr Java code to VB.NET conversion problem
-------------------------------------------

                 Key: LUCENENET-39
                 URL: https://issues.apache.org/jira/browse/LUCENENET-39
             Project: Lucene.Net
          Issue Type: Improvement
         Environment: Windows XP, Lucene.NET
            Reporter: Sawan Kumar Sharma


Hi,

I have used Solr facets logic to implement faceted searching in my web site. 

One problem I am facing here is that I am using BitArray class of .NET instead 
of BitSet class of java. The BitSet class has one method "Cardinality" which is 
not available in BitArray. This method returns number of True bits in BitSet. 
To achieve this goal I have used following logic...
        Dim c As Integer = 0
        For Each bit As Boolean In filterBitSet
            If bit Then
                c += 1
            End If
        Next
        Return c
Here I have used Loop and it consume little bit more time while preparing 
facets. 

How I can resolve this issue..??

Thanks in advance

Sawan


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to