OyvindLGjesdal commented on issue #2974:
URL: https://github.com/apache/jena/issues/2974#issuecomment-2610121670

   Hi @filak  and thanks for the issue.
   
   I haven't tested out the feature anywhere except for the tests, but from a 
quick check I suspect that the properties has to be stored in different text 
fields for it to currently work:
   
   Comparing the test configuration which passes with your example:
   
   ````
    [ text:field "ftext" ; text:predicate rdfs:label ]
    [ text:field "ftext" ; text:predicate mt:note ]
            ) .
   ````
   vs.  the config of the the passing test
   
   ```
    "[ text:field \"comment\" ; text:predicate rdfs:comment ]",
                   "         [ text:field \"ftext\" ; text:predicate rdfs:label 
]",
                   "         [ text:field \"ftext\" ; text:predicate 
mt:altLabel ]",
                   "         [ text:field \"ftext\" ; text:predicate 
mt:alt_label ]",
                   "         [ text:field \"ftext\" ; text:predicate 
mx:alt_label ]",
                   "         [ text:field \"note\" ; text:predicate mt:note ]",
                   "         ) ."
    ````
   and looking at debug output of the issue running the tests
   
   ```
   parsed query: +((ftext_en-01:red ftext_en-01:booze) (ftext_en-02:red 
ftext_en-02:booze) (note_en-01:red note_en-01:booze) 
   (note_en-02:red note_en-02:booze)) +graph:urn:x-arq:DefaultGraphNode; limit: 
10000
   ```
   
   the list of predicates gets translated into a lucene query using the 
generated field names based on their name and the languages, so currently 
different field names have to be used for the query to succeed, and excluding 
predicates that are stored in the same field isn't implemented.
   
   ```diff
   - [ text:field "ftext" ; text:predicate mt:note ]
   + [ text:field "note" ; text:predicate mt:note ]
   ```
   
   I don't know how the text query for single predicates are implemented or are 
translated into a lucene query (or if  they are filtered afterwards, after 
searching a text field,  if the predicate is stored also on the field?) but it 
could be possible to implement here, given that predicate filtering works.


-- 
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