You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/06/02 17:09:39 UTC
svn commit: r1683124 -
/jena/site/trunk/content/documentation/query/text-query.mdtext
Author: andy
Date: Tue Jun 2 15:09:39 2015
New Revision: 1683124
URL: http://svn.apache.org/r1683124
Log:
Changes for (?s ?score) text:query ...
Modified:
jena/site/trunk/content/documentation/query/text-query.mdtext
Modified: jena/site/trunk/content/documentation/query/text-query.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/text-query.mdtext?rev=1683124&r1=1683123&r2=1683124&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/text-query.mdtext (original)
+++ jena/site/trunk/content/documentation/query/text-query.mdtext Tue Jun 2 15:09:39 2015
@@ -104,14 +104,18 @@ The following forms are all legal:
?s text:query 'word' # query
?s text:query (rdfs:label 'word') # query specific property if multiple
?s text:query ('word' 10) # with limit on results
+ (?s ?score) text:query 'word' # query capturing also the score
The most general form is:
- ?s text:query (property 'query string' 'limit')
+ (?s ?score) text:query (property 'query string' 'limit')
Only the query string is required, and if it is the only argument the
surrounding `( )` can be omitted.
+When a 2-element list is used as the subject, the second variable gets
+assigned the raw score from the text index as a float value.
+
The property URI is only necessary if multiple properties have been indexed.
| Argument | Definition |