Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9995 refactor / cleanup PointFields code and overall asumptions about numerics
  3. SOLR-10399

generalize some SimpleFacet logic realted to PointsField vs other fields

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      in the below change, it looks like the logic that you apply to point fields would work in the general case and be as efficient?

      +    if (ft.isPointField()) {
      +      for (String term : terms) {
      +        int count = searcher.numDocs(ft.getFieldQuery(null, sf, term), parsed.docs);
      +        res.add(term, count);
      +      }
      +    } else {
      +      for (String term : terms) {
      +        String internal = ft.toInternal(term);
      +        int count = searcher.numDocs(new TermQuery(new Term(field, internal)), parsed.docs);
      +        res.add(term, count);
      +      }
           }
      

        Attachments

          Activity

            People

            • Assignee:
              hossman Chris M. Hostetter
              Reporter:
              hossman Chris M. Hostetter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: