Closed fvanlitsenburg closed 2 years ago
Screenshot:
Hey @fvanlitsenburg! I just tried replicating your problem with our current master version, where it seems to be working just fine. We recently refactored filtering in haystack, so upgrading to the latest version (1.2) might solve your problem.
Thanks Bogdan. I was in fact using version 1.2 already (sorry, my bad), at least according to the version.txt file and pip. However, on the :8000/docs Swagger page it says version 0.1 and if I look at application.py in the rest_api folder, I think that should not be the case.
So I suspect something may have gone wrong migrating from <1.0 to 1.2. In particular as I do not encounter this problem when I set Haystack up from scratch.
Some other things I tried:
I will try a few more things and then let you know if I find a solution
@fvanlitsenburg what you could try in addition is to compare the index mappings between a working (from scratch) index and a non working index. Simply type localhost:9200/INDEX_NAME
into your browser on the machine you're running haystack. Maybe you find any clues about the problematic property.
Hey @fvanlitsenburg, did you manage to get the filters to work eventually? if you can share some insights on how you debugged this, I believe it could help a lot other people migrating from 1.0!
Hi Sara,
Thanks! To be honest, I opted for the path of least resistance and installed Haystack from scratch...
Best, Felix
On Mon, Mar 21, 2022 at 11:35 AM Sara Zan @.***> wrote:
Hey @fvanlitsenburg https://github.com/fvanlitsenburg, did you manage to get the filters to work eventually? if you can share some insights on how you debugged this, I believe it could help a lot other people migrating from 1.0!
— Reply to this email directly, view it on GitHub https://github.com/deepset-ai/haystack/issues/2249#issuecomment-1073735512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQOM7YQXMDZ3VDJT3SEUYMDVBBGFNANCNFSM5PIHPWHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@fvanlitsenburg Just a suggestion, make sure "areaLevel2" field is indexed as "keyword" type in Elasticsearch. As @tstadel told, you shall check your mapping with this localhost:9200/INDEX_NAME/_mapping
I'm closing this now as it seems to be solved for now.
Question Currently I am running Haystack on an EC2 instance. It works just fine, except that the query filters do not apply. What am I doing wrong? I run this on the port :8000/docs. I can share the EC2 instance, but would rather do so on a private channel. I am running Haystack on top of ElasticSearch.
The return output I get is below. I have bolded the relevant filter which shows that they have not been applied, it seems like.
Additional context Steps I have already taken to address the issue:
YAML pipeline:
FAQ Check
PS this is my first-ever GitHub request, do please point to anything that could have made the request better :)