Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-196

Use lucene IndexReader to render filtered navigation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: sf server, sf web
    • Labels:
      None

      Description

      Need to investigate possibility of pure lucene implementation of filtered navigation.

      http://blog.mikemccandless.com/2012/03/new-index-statistics-in-lucene-40.html

      http://stackoverflow.com/questions/8910008/how-can-i-get-the-list-of-unique-terms-from-a-specific-field-in-lucene

      IndexReader reader = IndexReader.open(index);
      TermEnum terms = reader.terms();
      Set<String> uniqueTerms = new HashSet<String>();
      while (terms.next()) {
      final Term term = terms.term();
      if (term.field().equals("field_name"))

      { uniqueTerms.add(term.text()); }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                denis Denis Pavlov
                Reporter:
                denis Denis Pavlov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: