Skip to content

Commit

Permalink
Includes additional fields in the search index
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednoureldeen committed Feb 6, 2019
1 parent 4d1f6b1 commit 327358a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geonode/layers/search_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class LayerIndex(indexes.SearchIndex, indexes.Indexable):
csw_wkt_geometry = indexes.CharField(model_attr="csw_wkt_geometry")
detail_url = indexes.CharField(model_attr="get_absolute_url")
owner__username = indexes.CharField(model_attr="owner", faceted=True, null=True)
owner__first_name = indexes.CharField(model_attr="owner__first_name", faceted=True, null=True)
owner__last_name = indexes.CharField(model_attr="owner__last_name", faceted=True, null=True)
is_published = indexes.BooleanField(model_attr="is_published")
featured = indexes.BooleanField(model_attr="featured")
popular_count = indexes.IntegerField(
model_attr="popular_count",
default=0,
Expand Down

0 comments on commit 327358a

Please sign in to comment.