I am trying to create Lucene index on one of the columns of a child region (Customer) under the parent region (AllRegions) in cache.xml. However, after loading the xml, I can't see the Lucene index. Here is the Xml:
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:lucene="http://geode.apache.org/schema/lucene"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache
http://geode.apache.org/schema/cache/cache-1.0.xsd
http://geode.apache.org/schema/lucene
http://geode.apache.org/schema/lucene/lucene-1.0.xsd"
version="1.0"
is-server="true">
<region-attributes id="EMPTYATTR" data-policy="empty" scope="distributed-no-ack">
<subscription-attributes interest-policy="all"/>
</region-attributes>
<region-attributes id="PARTITIONEDATTR" data-policy="partition" enable-subscription-conflation="true">
<partition-attributes recovery-delay="0" redundant-copied="1" startup-recovery-delay="0/>
</region-attributes>
<region name="AllRegions" refid="EMPTYATTR">
<region name="Customer" refid="PARTITIONEDATTR">
<lucene:index name="nameIndex">
<lucene:field name="firstName"/>
</lucene:index>
</region>
</region>
</cache>After I restart the server and check the Lucene indexes via gfsh, it couldn't find any Lucene index:
gfsh>list lucene indexes
No Lucene indexes found
Banging my head on this for last few days. What am I doing wrong here?