Error in elastic search


(Renad Ahmed) #1

Execution exception
IllegalStateException occured : Please re-index, not all indexed items
are available in the database

In {module:elasticsearch-0.4}/app/controllers/elasticsearch/
ElasticSearchController.java (around line 366)

362:
Query query = (Query) ElasticSearch.query(qb, entityClass);
363:
// FIXME Currently we ignore the orderBy and order fields
364:
query.from((page - 1) * getPageSize()).size(getPageSize());
365:
query.hydrate(true);
366:
return query.fetch();
367:

368:

369:
}
370:

371:
/**
372:
* Find by id.
This exception has been logged with id 6adhkiajc

Elastic search was working perfectly suddenly it gave me this error
for no reason without me changing the code. the highlighted part is
return query.fetch();


(Shay Banon) #2

It seems like a message you get from your app, elasticsearch does not
generate this failure.

On Sun, May 20, 2012 at 12:03 PM, Renad renad.ahmed23@gmail.com wrote:

Execution exception
IllegalStateException occured : Please re-index, not all indexed items
are available in the database

In {module:elasticsearch-0.4}/app/controllers/elasticsearch/
ElasticSearchController.java (around line 366)

362:
Query query = (Query) ElasticSearch.query(qb,
entityClass);
363:
// FIXME Currently we ignore the orderBy and order
fields
364:
query.from((page - 1) *
getPageSize()).size(getPageSize());
365:
query.hydrate(true);
366:
return query.fetch();
367:

368:

369:
}
370:

371:
/**
372:
* Find by id.
This exception has been logged with id 6adhkiajc

Elastic search was working perfectly suddenly it gave me this error
for no reason without me changing the code. the highlighted part is
return query.fetch();


(system) #3