geonode-project icon indicating copy to clipboard operation
geonode-project copied to clipboard

HYSTACK SEARCH causing issues with elasticsearch docker image

Open afabiani opened this issue 6 years ago • 4 comments

afabiani avatar Apr 09 '19 15:04 afabiani

Do you have more info? I am in this part of the codebase on a custom geonode project and can help debug.

Originally I got 0 results after I loaded more than 500 layers. What was happening was elasticsearch did not like the "list of ids" that geonode sends when it is too large and was just returning zero results.

In order to continue forward I enabled SKIP_* and tweaked the code a bit.

ingenieroariel avatar Apr 09 '19 16:04 ingenieroariel

Currently not, except some weird behavior experienced today by @ppasq

Most probably that part should be refactorized from scratch by using elastisearch-dsl instead of django-haystack

afabiani avatar Apr 09 '19 16:04 afabiani

Just to summerize what I experienced:

  • The layers count corresponds to the number of listed layers but it is different from what is reported in the filter type (sum of types). The latter is correct. Can't understand why some are listed while others not.
  • The username does not appear in the resourcebase_snippet and points to a broken url (/layers/people/profile/username?!?)
  • The group does not appear as well.
  • The icon (e.g. vector data) before the layer name does not appear (no error though).
  • No javascript errors in the page.

ppasq avatar Apr 10 '19 08:04 ppasq

Grazie Paolo,

I should be able to look into this as part of the secondary cities project in the coming weeks. Will keep this issue updated.

ingenieroariel avatar Apr 10 '19 11:04 ingenieroariel