filak opened a new issue, #2094:
URL: https://github.com/apache/jena/issues/2094

   ### Version
   
   4.9.0
   
   ### Question
   
   This query works - searching all the fields:
   
   ```
   select * where {
   ?s text:query ("beer" 10) .
   }
   ```
   
   However this query - which should search only in rdfs:label and mt:altLabel 
fields returns 0 hits :
   
   ```
   select * where {
   ?s text:query (mt:defQuery "beer" 10) .
   }
   ```
   
   This query returns also 0 hits :
   
   ```
   select * where {
   ?s text:query (mt:includeNotes "beer" 10) .
   }
   ```
   
   mytest.ttl excerption:
   
   ```
   # Text index description
   <#indexLucene> 
       a text:TextIndexLucene ;
       text:directory ".../indexes/mytest" ;
       text:entityMap <#entMap> ;
       text:storeValues true ;
       text:analyzer [
          a text:ConfigurableAnalyzer ;
          text:tokenizer text:StandardTokenizer ;
          text:filters (text:ASCIIFoldingFilter text:LowerCaseFilter)
          ] ;
       text:queryParser text:AnalyzingQueryParser ;
       text:multilingualSupport true ;
       text:propLists (
           [ text:propListProp mt:defQuery ;
             text:props ( 
                rdfs:label
                mt:altLabel
                ) ;
           ]
           [ text:propListProp mt:includeNotes ;
             text:props ( 
                rdfs:label
                mt:altLabel
                mt:note
                ) ;
           ]
       ) ;
        .
   
   <#entMap> 
       a text:EntityMap ;
       text:defaultField     "ftext" ;
       text:entityField      "uri" ;
       text:uidField         "uid" ;
       text:langField        "lang" ;
       text:graphField       "graph" ;
       text:map (
            [ text:field "ftext" ; text:predicate rdfs:label ]
            [ text:field "ftext" ; text:predicate mt:altLabel ]
            [ text:field "ftext" ; text:predicate mt:note ]
            ) .
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to