I'm using Jena 3.11, full server as jar, and have following text index config:

<#indexLucene> a text:TextIndexLucene ;
     text:directory <jena_text_index>  ;
     text:entityMap <#entMap> ;
     text:storeValues true ;
     text:analyzer [ a text:StandardAnalyzer ] ;
     text:queryAnalyzer [ a text:KeywordAnalyzer ] ;
     text:queryParser text:AnalyzingQueryParser ;
     text:multilingualSupport true ;
  .

<#entMap> a text:EntityMap ;
     text:defaultField     "prefLabel" ;
     text:entityField      "uri" ;
     text:uidField         "uid" ;
     text:langField        "lang" ;
     text:graphField       "graph" ;
     text:map (
          [ text:field "prefLabel" ; text:predicate skos:prefLabel ]
          [ text:field "altLabel"  ; text:predicate skos:altLabel ]
          [ text:field "content"  ; text:predicate lsrm:content ]
          ) .


When inserting long text into lsrm:content, search usually works only without language. So, inserted

<https://example.com/someid> lsrm:content "long ... text ... here"@en

and querying like this works

(?s ?score ?content) text:query (lsrm:content "text" ) .

but this returns empty result

(?s ?score ?content) text:query (lsrm:content "text" "lang:en") .

But in some occasions language search does work in lsrm:content, can't see what is the cause here.

Any ideas?

--
Lingsoft - 30 years of Leading Language Management

www.lingsoft.fi

Speech Applications - Language Management - Translation - Reader's and Writer's 
Tools - Text Tools - E-books and M-books

Mikael Pesonen
System Engineer

e-mail: [email protected]
Tel. +358 2 279 3300

Time zone: GMT+2

Helsinki Office
Eteläranta 10
FI-00130 Helsinki
FINLAND

Turku Office
Kauppiaskatu 5 A
FI-20100 Turku
FINLAND

Reply via email to