[
https://issues.apache.org/jira/browse/JENA-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14533201#comment-14533201
]
ASF GitHub Bot commented on JENA-928:
-------------------------------------
Github user amiara514 commented on the pull request:
https://github.com/apache/jena/pull/52#issuecomment-99979270
Hi,
with the last proposal :
1) It's now possible to set multilingual indexing via assembler
configuration file by defining the multilingual class and using it in the index
definition :
```
[] ja:loadClass "org.apache.jena.query.text.TextQuery" .
text:TextDataset rdfs:subClassOf ja:RDFDataset .
#text:TextIndexLucene rdfs:subClassOf text:TextIndex .
text:TextIndexLuceneMultilingual rdfs:subClassOf text:TextIndex .
<#indexLucene> a text:TextIndexLuceneMultilingual ;
text:directory <file:Lucene> ;
##text:directory "mem" ;
text:entityMap <#entMap> ;
.
```
This multilingual index manages all localized literals automatically with
all Lucene localized analyzers.
2) Moreover, with a default Lucene index setup, a localized analyzer can be
specified (as for SimpleAnalyzer, KeywordAnalyzer, etc...) by this config :
```
<#indexLucene> a text:TextIndexLucene ;
text:directory <file:Lucene> ;
text:entityMap <#entMap> ;
text:queryAnalyzer [
a text:LocalizedAnalyzer ;
text:language "en"
]
.
```
reference for JENA-928
> jena-text multilingual indexing
> -------------------------------
>
> Key: JENA-928
> URL: https://issues.apache.org/jira/browse/JENA-928
> Project: Apache Jena
> Issue Type: Improvement
> Components: Text
> Affects Versions: Jena 3.0.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
>
> This is to track pull request https://github.com/apache/jena/pull/52/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)