Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1807

text: count results without returning them

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Jena 3.13.1
    • None
    • Text

    Description

      For some queries I'm only interested in the number of hits in the Lucene index, not by the results themselves, but it seems there's no way to get this information directly from the jena:text interface, I need to fetch all the results and then count them in sparql. This will pose performance issues when there are a very large number of hits in the Lucene index.

      One solution would be to have a new keyword with a simple interface like

      ?cnt text:count ( rdfs:label "query string"@en ) .

      Attachments

        Activity

          People

            Unassigned Unassigned
            eroux Elie Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: