27.10.2012 02:31, Ondřej Hoferek kirjoitti:
I would like to use the full text search with LARQ for accent-insensitive
matching. I.e. pattern {?literal pf:textMatch "laska"} should also return
literal "láska žije".

I know that in Lucene, there is a class ISOLatin1AccentFilter which can be
used while building/querying the index. However, I don't know how to use it
from within LARQ.

Is there any way to achieve my goal?

Hi Ondrej,

I've had similar wishes but unfortunately LARQ is currently hardwired to use the Lucene StandardAnalyzer which does not support such a filter. So you would have to modify LARQ to use a custom analyzer with an accent filter such as ISOLatin1AccentFilter or perhaps ICUFoldingFilter.

What I would like to see is a way to configure LARQ to use a custom analyzer, filter etc. combination without having to change the Java code. For example Solr allows one to select suitable analysis components using an XML configuration file.

-Osma

--
Osma Suominen | osma.suomi...@aalto.fi | +358 40 5255 882
Aalto University, Department of Media Technology, Semantic Computing Research Group Room 2541, Otaniementie 17, Espoo, Finland; P.O. Box 15500, FI-00076 Aalto, Finland

Reply via email to