<p>We are using GridGain Community edition : 8.8.10 and have created Ignite Cluster in Kubernetes using the Apache Ignite operator. We have enabled native persistence also.</p>
<p><a href="https://ignite.apache.org/docs/latest/installation/kubernetes/gke-deployment" rel="nofollow noreferrer">https://ignite.apache.org/docs/latest/installation/kubernetes/gke-deployment</a></p>
<p>In the development environment we shutdown our cluster during the night and bring it up during morning hours. When the cluster comes up it contains the data which was stored earlier. If we search the cache using key then it returns the result, but if we use the Query API for partial search then it is not returning results. We checked the cache size and it matches the datasource record size. Also after we search the Cache using the cache key, then that entry is available in the Query search results.</p>
<p>If we shut-down one of the nodes of the Ignite Cluster or client nodes. The TextSearch still works. TextSearch doesn't works only when all the nodes of the cluster are scaled-down and then scaled up using the existing disk.</p>
<p>Is there any configuration required to enable Query search after cold restart of the Ignite cluster ?</p>
<pre><code>&lt;bean id=&quot;ignite.cfg&quot; class=&quot;org.apache.ignite.configuration.IgniteConfiguration&quot;&gt;
        &lt;property name=&quot;metricsLogFrequency&quot; value=&quot;300000&quot;/&gt;
        &lt;property name=&quot;peerClassLoadingEnabled&quot; value=&quot;true&quot;/&gt;
        &lt;property name=&quot;clientMode&quot; value=&quot;true&quot;/&gt;
        &lt;property name=&quot;sqlConfiguration&quot;&gt;
            &lt;bean class=&quot;org.apache.ignite.configuration.SqlConfiguration&quot;&gt;
                &lt;property name=&quot;sqlGlobalMemoryQuota&quot; value=&quot;300M&quot;/&gt;
                &lt;property name=&quot;sqlQueryMemoryQuota&quot; value=&quot;30M&quot;/&gt;
                &lt;property name=&quot;sqlOffloadingEnabled&quot; value=&quot;true&quot;/&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
        &lt;property name=&quot;workDirectory&quot; value=&quot;/gridgain/work&quot;/&gt;

        &lt;property name=&quot;dataStorageConfiguration&quot;&gt;
            &lt;bean class=&quot;org.apache.ignite.configuration.DataStorageConfiguration&quot;&gt;
                &lt;!-- set the size of wal segments to 128MB --&gt;
                &lt;property name=&quot;walSegmentSize&quot; value=&quot;#{128 * 1024 * 1024}&quot;/&gt;
                &lt;!-- Set the page size to 8 KB --&gt;
                &lt;property name=&quot;pageSize&quot; value=&quot;#{8 * 1024}&quot;/&gt;
                &lt;property name=&quot;defaultDataRegionConfiguration&quot;&gt;
                    &lt;bean class=&quot;org.apache.ignite.configuration.DataRegionConfiguration&quot;&gt;
                        &lt;property name=&quot;name&quot; value=&quot;Default_Region&quot;/&gt;
                        &lt;!-- Memory region of 20 MB initial size. --&gt;
                        &lt;property name=&quot;initialSize&quot; value=&quot;#{20 * 1024 * 1024}&quot;/&gt;
                        &lt;!-- Memory region of 8 GB max size. --&gt;
                        &lt;property name=&quot;maxSize&quot; value=&quot;#{8L * 1024 * 1024 * 1024}&quot;/&gt;
                        &lt;!-- Enabling eviction for this memory region. --&gt;
                        &lt;property name=&quot;pageEvictionMode&quot; value=&quot;RANDOM_2_LRU&quot;/&gt;
                        &lt;property name=&quot;persistenceEnabled&quot; value=&quot;true&quot;/&gt;
                        &lt;property name=&quot;warmUpConfiguration&quot;&gt;
                            &lt;bean class=&quot;org.apache.ignite.configuration.LoadAllWarmUpConfiguration&quot;/&gt;
                        &lt;/property&gt;
                        &lt;!-- Increasing the buffer size to 1 GB. --&gt;
                        &lt;property name=&quot;checkpointPageBufferSize&quot; value=&quot;#{1024L * 1024 * 1024}&quot;/&gt;
                    &lt;/bean&gt;
                &lt;/property&gt;
                &lt;property name=&quot;walPath&quot; value=&quot;/gridgain/wal&quot;/&gt;
                &lt;property name=&quot;walArchivePath&quot; value=&quot;/gridgain/wal&quot;/&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
        &lt;property name=&quot;discoverySpi&quot;&gt;
            &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi&quot;&gt;
                &lt;property name=&quot;ipFinder&quot;&gt;
                    &lt;bean class=&quot;org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder&quot;&gt;
                        &lt;property name=&quot;namespace&quot; value=&quot;cache&quot;/&gt;
                        &lt;property name=&quot;serviceName&quot; value=&quot;cache-service&quot;/&gt;
                    &lt;/bean&gt;
                &lt;/property&gt;
                &lt;property name=&quot;NetworkTimeout&quot; value=&quot;30000&quot;/&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
        &lt;property name=&quot;communicationSpi&quot;&gt;
            &lt;bean class=&quot;org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi&quot;&gt;
                &lt;property name=&quot;slowClientQueueLimit&quot; value=&quot;2000&quot;/&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
        &lt;property name=&quot;cacheConfiguration&quot; ref=&quot;igniteCacheDefinition&quot;/&gt;
    &lt;/bean&gt;
</code></pre>

dassum
<p><strong>Apache Ignite</strong> uses <strong>Apache Lucene</strong> (currently it's 7.4.0) for text queries under the hood. In general Lucene-based indexes leverage various implementations of <a href="https://lucene.apache.org/core/7_4_0/core/org/apache/lucene/store/Directory.html" rel="nofollow noreferrer">org.apache.lucene.store.Directory</a>. In <strong>Apache Ignite</strong> it's a custom <a href="https://github.com/apache/ignite/blob/master/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridLuceneDirectory.java" rel="nofollow noreferrer">one</a>. In turn it uses RAM-based <a href="https://github.com/apache/ignite/blob/master/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridLuceneOutputStream.java#L69" rel="nofollow noreferrer">GridLuceneOutputStream</a>. Basically it means that Ignite native persistence doesn't come into play for those kinds of indexes at the moment.</p>
<p>UPD: in case of configured backups for a partitioned cache it should work as a regular index. For example if you add an additional node to the baseline topology you would see a <a href="https://ignite.apache.org/docs/latest/data-rebalancing#data-rebalancing" rel="nofollow noreferrer">rebalance</a> happening. Rebalance uses regular cache operations to insert entries. Lucene index would be <a href="https://github.com/apache/ignite/blob/master/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java#L388" rel="nofollow noreferrer">built</a> on the new node. On the contrary if you remove a node from a cluster you would still have a full copy of data including text indexes.</p>
