django-elasticsearch-dsl-drf icon indicating copy to clipboard operation
django-elasticsearch-dsl-drf copied to clipboard

Integrate Elasticsearch DSL with Django REST framework.

Results 67 django-elasticsearch-dsl-drf issues
Sort by recently updated
recently updated
newest added

@api_view(['POST']) @permission_classes((IsAuthenticated,)) def api_training_recommendation_view(request, Sku): try: recommendations = Recommendation.objects.all() except Recommendation.DoesNotExist: return Response(status=status.HTTP_404_NOT_FOUND) try: recommendation = Recommendation.objects.filter(Sku=Sku) print(recommendation) except Recommendation.DoesNotExist: return Response(status=status.HTTP_404_NOT_FOUND) if request.method == 'POST': serializer_recommendations = RecommendationSerializer(recommendations, many=True)...

question

elasticsearch-dsl-py has a [CustomField](https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/field.py#L133) type that we use to declare "flattened" field types. It would be great if the DocumentSerializer supported this type. Currently, because it is not in the...

Is there an easy way to search across all indices and have the result be serialized back? For example, hitting elastic search at `localhost:9200/_search?` searches across all available indices. What's...

enhancement
work in progress
help appreciated

**Questions** Hey! I am trying to tune the relevance of my field search result based on another field numerical value (the field is in another model). Looking at the [ES...

question

How to find out the top 100 data with the highest score, and then reorder them according to the new sorting field?

question

Hi there, is it possible to shuffle the results returned? also, is it possible to only shuffle the first 10 ? Elasticsearch suggest doing this ``` { "from":STARTING_POSITION_NUMBER, "size":15, "query"...

enhancement
question
help appreciated

Hi! I have ES document with date field and corresponding Django model DateTimeField. However, when i'm trying to retrieve document via drf, it returns datetime.date object, not datetime.datetime, how expected....

enhancement
question
work in progress
help appreciated
investigate
proposal

hello I was following the instruction for the front-end example, but the following step falls over: ``` $ ./scripts/create_test_data.shTraceback (most recent call last): File "/home/username/miniconda3/envs/test-searchkit-3/lib/python3.9/logging/config.py", line 564, in configure handler...

I am working on integrating Elastic Search in my existing **Django REST application**. In their documentation 'exclude' query param is provided. But the query only when we provide the full...

I just converted a single `location` field on my document, to a `NestedField` with this definition: `location = fields.NestedField(properties={"point": fields.GeoPointField()})` Then on my view I have (I added `path` and...

question