OyvindLGjesdal commented on code in PR #2121:
URL: https://github.com/apache/jena/pull/2121#discussion_r1415377057


##########
jena-text/src/main/java/org/apache/jena/query/text/TextIndexLucene.java:
##########
@@ -704,7 +704,7 @@ private String composeQField(String qs, String textField, 
String lang, boolean u
             if (this.isMultilingual && StringUtils.isNotEmpty(lang) && 
!lang.equals("none")) {
                 textField += "_" + lang;
             }
-            textClause = textField + ":" + qs + " ";
+            textClause = textField + ": (" + qs + ") ";

Review Comment:
   Yes, I minimized the config,  so it no longer has multilingual search 
configured, which was the original use-case. Will add.
   
   Edit: I was a bit fast in reading the codepath, and misunderstood what it 
applies for. This is for 
https://jena.apache.org/documentation/query/text-query.html#multilingual-enhancements-for-multi-encoding-searches,
 eg. 
   ```
   text:searchFor ( "bo" "bo-x-ewts" "bo-alalc97" ) ;
   ```
   
   will try to get a config and example up, using the setup from the docs, but 
maybe with content (and language codes) I can read. eg. en_UK, en_US?



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