In my development environment with the following configuration (see
gist) when I start my application I create the index (if it doesn't
exist). When tomcat is started I run a search in my empty index and
get no error.
I stop tomcat (cleanly) and restart it. I run the same research and I
get " Failed to execute phase [initial], No indices / shards to search
on, requested indices are []"
What's wrong ? If I delete the data folder and restart I get
nothing....and again after restarting.
In my development environment with the following configuration (see
gist) when I start my application I create the index (if it doesn't
exist). When tomcat is started I run a search in my empty index and
get no error.
I stop tomcat (cleanly) and restart it. I run the same research and I
get " Failed to execute phase [initial], No indices / shards to search
on, requested indices are "
What's wrong ? If I delete the data folder and restart I get
nothing....and again after restarting.
If you close the index, then you can't really search on it, so what happens
is that the search says that it has no indices to search on. You don't need
to close the index on shutdown, the idea of a closed index is to keep the
index around in the cluster (date wise), but nothing much more (can't do
any operation against it).
The message is a bit misleading, mainly stemming from the fact to try and
support searching over several indices, and not breaking over when some of
them are closed.
In my development environment with the following configuration (see
gist) when I start my application I create the index (if it doesn't
exist). When tomcat is started I run a search in my empty index and
get no error.
I stop tomcat (cleanly) and restart it. I run the same research and I
get " Failed to execute phase [initial], No indices / shards to search
on, requested indices are "
What's wrong ? If I delete the data folder and restart I get
nothing....and again after restarting.
If you close the index, then you can't really search on it, so what happens
is that the search says that it has no indices to search on. You don't need
to close the index on shutdown, the idea of a closed index is to keep the
index around in the cluster (date wise), but nothing much more (can't do
any operation against it).
The message is a bit misleading, mainly stemming from the fact to try and
support searching over several indices, and not breaking over when some of
them are closed.
In my development environment with the following configuration (see
gist) when I start my application I create the index (if it doesn't
exist). When tomcat is started I run a search in my empty index and
get no error.
I stop tomcat (cleanly) and restart it. I run the same research and I
get " Failed to execute phase [initial], No indices / shards to search
on, requested indices are "
What's wrong ? If I delete the data folder and restart I get
nothing....and again after restarting.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.