Page 1 of 1

Simple request: provide status for Search Index updating

PostPosted: Thu Jul 24, 2008 2:48 am
by supra92
Hi Sindre,

I would think/hope this would be a particularly easy little feature addition to implement, but you tell me....

When I go to Settings -> Search, and click the "Update Search Index Now" link, it responds with the following message:

"The search index is currently being created. This operation may take several minutes, depending on how large your media library is.
You may continue using Subsonic while the search index is being created."

That's great. However --- there's no way to know when it's done. I know it doesn't impede the ability to use Subsonic, but I'd still be interested in knowing how long it takes to update all newly-added albums, and when exactly the update is done.

While an animated progress bar seems out of scope and too-fancy for Subsonic, would it at least be possible for Subsonic to let us know when the update is complete? Perhaps another line that says "Index Update complete." If it could tell you how many new albums had been added, that would be cool but completely unnecessary.

Thanks!
Supra92

PostPosted: Tue Jul 29, 2008 10:12 am
by mars96
You'll find an entry in the log if the indexing has been completed.
Just click on Help at the subsonic menu bar.

SearchService.java:
Code: Select all
LOG.info("Starting to create search index.");
[...reindex work...]
LOG.info("Created search index with " + scanner.getCount() + " entries.");
...or if it failed...
LOG.error("Failed to create search index.", x);


The result looks like this:
Code: Select all
[7/29/08 12:04:23 PM CEST]    INFO   SearchService   Starting to create search index.
[7/29/08 12:04:27 PM CEST]    INFO   SearchService   Created search index with 1000 entries.
[7/29/08 12:04:28 PM CEST]    INFO   SearchService   Created search index with 2000 entries.
[7/29/08 12:04:37 PM CEST]    INFO   SearchService   Created search index with 3000 entries.
[7/29/08 12:04:39 PM CEST]    INFO   SearchService   Created search index with 4000 entries.
[7/29/08 12:04:42 PM CEST]    INFO   SearchService   Created search index with 4979 entries.