You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using django-haytsack in my django-application. I have to filter Searchqueryset based on salary which is a integer field. Trying to filter using lte but its not giving proper result.
Actual behaviour
if i give filter(salary__lte=int(min_sal) ,where min_sal=5000,Its give results for 1000,13000,13000,354675.
models.py
class UserSkillsProfile(models.Model):
...
salary = models.IntegerField(blank=True, null=True)
search_inndexes.py
class UserSkillsProfileIndex(indexes.SearchIndex, indexes.Indexable):
...
salary = indexes.IntegerField(model_attr='salary',null=True)
Can you test this with the latest Haystack release? Which search engine backend are you using? Do you have a reproducible test case?
I am new to haystack. Iam using Elasticsearch as SearchEngine and Postgres sql as backend. Currently I am not using any test cases. I tried with haystack 2.4.1 version
Expected behaviour
I am using django-haytsack in my django-application. I have to filter Searchqueryset based on salary which is a integer field. Trying to filter using lte but its not giving proper result.
Actual behaviour
if i give filter(salary__lte=int(min_sal) ,where min_sal=5000,Its give results for 1000,13000,13000,354675.
models.py
class UserSkillsProfile(models.Model):
...
salary = models.IntegerField(blank=True, null=True)
search_inndexes.py
class UserSkillsProfileIndex(indexes.SearchIndex, indexes.Indexable):
...
salary = indexes.IntegerField(model_attr='salary',null=True)
Query
Configuration
The text was updated successfully, but these errors were encountered: