You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Mikael Pesonen <mi...@lingsoft.fi> on 2019/06/03 14:12:11 UTC
Re: Highlighting text results
Text in the field lsrm:content is 76000 characters. Is there maybe an
upper limit for content length that is exceeded?
On 27/05/2019 12:29, Mikael Pesonen wrote:
>
> Making query
>
> ( ?s ?score ?content ?g) text:query (lsrm:content "kieliteknologia"
> "lang:fi") .
>
> works, all variables are populated correctly, but with highlighting
>
> ( ?s ?score ?content ?g) text:query (lsrm:content "kieliteknologia"
> "lang:fi" "highlight:")
>
> ?content returns empty string ""@fi
>
>
> Here is the config snippet:
>
> # Text index description
> <#indexLucene> a text:TextIndexLucene ;
> text:directory <file:/home/text/tools/jena_text_index/> ;
> text:entityMap <#entMap> ;
> text:storeValues true ;
> text:analyzer [ a text:StandardAnalyzer ] ;
> 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 ]
> ) .
>
> Anyone got any idea what is wrong here?
>
--
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: mikael.pesonen@lingsoft.fi
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