enterprisemediawiki / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
41 stars 27 forks source link

Indexing sometimes takes too long #335

Open jamesmontalvo3 opened 8 years ago

jamesmontalvo3 commented 8 years ago

When a page is created or edited a job is kicked off to get that revision into Elasticsearch. Generally speaking this indexing happens very quickly, such that you don't notice that there is any issue. Sometimes, however, it can take up to 20 page-refreshes (I'm guessing it's refresh-dependent, not time-dependent) to get a change to show up in search results. This is probably not a huge deal for regular content pages, since most people don't likely create a page, then immediately go searching for it.

Where this could be a big problem is when people upload files. If those files don't get immediately added to the index then when someone goes to the page they're editing and searches for the file (using the insert --> media dialog) the file they're looking for won't show up.

darenwelsh commented 8 years ago

I think this has happened to me and I just though ES wasn't working. Like you say, after many page loads it seems to work. In one case after tens of page loads, I created a new page and it coincidentally fixed the index for the other page at the same time. No idea if correlation = causation there.

On Fri, Feb 19, 2016 at 2:32 PM, James Montalvo notifications@github.com wrote:

When a page is created or edited a job is kicked off to get that revision into Elasticsearch. Generally speaking this indexing happens very quickly, such that you don't notice that there is any issue. Sometimes, however, it can take up to 20 page-refreshes (I'm guessing it's refresh-dependent, not time-dependent) to get a change to show up in search results. This is probably not a huge deal for regular content pages, since most people don't likely create a page, then immediately go searching for it.

Where this could be a big problem is when people upload files. If those files don't get immediately added to the index then when someone goes to the page they're editing and searches for the file (using the insert --> media dialog) the file they're looking for won't show up.

— Reply to this email directly or view it on GitHub https://github.com/enterprisemediawiki/meza/issues/335.


http://enterprisemediawiki.org http://mixcloud.com/darenwelsh http://www.beatportfolio.com