java - Check if indexing is exsits (Hibernate Search) -


can check if index files objects exist? start indexing @ stratup, takes long.

another idea check whether folder exist.

is there better solution?

i not quite sure after , actual problem is, let me try answer of questions.

can check if index files objects exist?

there no api provided search, provided file based index, check whether index exists @ expected location. however, not able tell whether in sync database.

i start indexing @ stratup, takes long.

if have existing data need build initial index. once have index build can example rely on automatic index updates (when entities created/updated/deleted) or manually rebuild @ given time intervals. whether need rebuild full index using manual approach depends on whether have way of telling entities need re-indexed (eg via last update column in database). bottom line, in control on how date index in relation database. depend on requirements.

another idea check whether folder exist.

as explained above, check tell whether index exists. whether index date or not cannot (easily) answered way.

is there better solution?

for what?


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -