You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Elie Roux (Jira)" <ji...@apache.org> on 2020/01/02 15:15:00 UTC

[jira] [Created] (JENA-1807) text: count results without returning them

Elie Roux created JENA-1807:
-------------------------------

             Summary: text: count results without returning them
                 Key: JENA-1807
                 URL: https://issues.apache.org/jira/browse/JENA-1807
             Project: Apache Jena
          Issue Type: Improvement
          Components: Text
    Affects Versions: Jena 3.13.1
            Reporter: Elie Roux


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

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





--
This message was sent by Atlassian Jira
(v8.3.4#803005)