lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Facciorusso <>
Subject Can't find Japanese words ending with numbers
Date Wed, 17 Apr 2019 10:05:28 GMT
Dear all,

I'm using Jackrabbit 2.16.1 and Lucene 3.6.2.

I have a node of type "mynodetype" having a property named "description" having the following
value: "横浜第2センタ". If I perform a full-text search using "jcr:contains" like:

jcr:contains(., '<value>*')

this query returns 0 results:
"//element(*,mynodetype)[(jcr:contains(., '横浜第2*'))]"

while all of the following work correctly and return at least one result:

"//element(*,mynodetype)[(jcr:contains(., '横浜第2センタ*'))]"
"//element(*,mynodetype)[(jcr:contains(., '横浜第*'))]"
"//element(*,mynodetype)[(jcr:contains(., '2センタ*'))]"
"//element(*,mynodetype)[(jcr:contains(., 'センタ*'))]"

I tried using both the default analyzer and the Japanese one (

This is the content of my indexingConfiguration.xml file:

<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM "">
<configuration xmlns:nt="">
    <index-rule nodeType="entity">
        <!-- simple properties -->
        <property isRegexp="true">.*:[^_]+</property>
        <!-- resources_data_xxx -->
        <property isRegexp="true">.*:resources_data_[^_]+</property>
        <!-- resources_xxx (with xxx != 'data') -->
        <property isRegexp="true">.*:resources_data[^_]+</property>
        <property isRegexp="true">.*:resources_(?!data)[^_]+</property>
        <!-- resourcesxyz_xxx -->
        <property isRegexp="true">.*:resources[^_]+_[^_]+</property>
        <!-- all other xxx_yyy (with xxx != resources) -->
        <property isRegexp="true">.*:(?!resources)[^_]+_[^_]+</property>

Should I use a different configuration/analyzer? Is it a bug?

Thank you.

Best regards,

Antonio Facciorusso
WebRainbow(r) Software Analyst & Developer

P +39 051 8550 562
M +39 335 1219330
A Via Ettore Cristoni, 84 - 40033 Casalecchio di Reno

[]<>  []
<>   [] <>
  [] <>

This email for the D.lgs.196/2003 (Privacy Code) and European Regulation 679/2016/UE (GDPR)
may contain confidential and/or privileged information for the exclusive use of the intended
recipient. Any review or distribution by others is strictly prohibited. If you are not the
intended recipient, you must not use, copy, disclose or take any action based on this message
or any information here. If you have received this email in error, please contact us (
by reply email and delete all copies. Legal privilege is not waived because you have read
this email. Thank you for your cooperation.

[] Please consider the environment before printing this

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message