VMware vExpert

 View Only
  • 1.  How to create Lucene index on child region in Apache geode

    Posted Apr 10, 2024 03:12 PM

    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?



  • 2.  RE: How to create Lucene index on child region in Apache geode

    Posted Apr 10, 2024 03:38 PM

    Which VMware product does this relate to?

     



  • 3.  RE: How to create Lucene index on child region in Apache geode

    Posted Apr 10, 2024 04:00 PM

    Hi Scott,

    This is related to VmWare Gemfire geode



  • 4.  RE: How to create Lucene index on child region in Apache geode

    Posted Apr 10, 2024 09:11 PM


  • 5.  RE: How to create Lucene index on child region in Apache geode

    Posted Apr 11, 2024 07:33 AM

    Thank you Scott. I have asked the question at the given link. But my questions are still in "Pending Review" state for last 15 hours.