Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service name doesn't seem to be included in search index #364

Closed
monfresh opened this issue Sep 4, 2015 · 2 comments
Closed

Service name doesn't seem to be included in search index #364

monfresh opened this issue Sep 4, 2015 · 2 comments
Labels

Comments

@monfresh
Copy link
Member

monfresh commented Sep 4, 2015

One of the service names in the example data is "Passport Photos", but when I search for keyword=passport, or even keyword=Passport Photos, no results show up. Looking at the tsv_body column for the example location, I don't see the words passport or photos. The SQL for the other service attributes, such as description, seems to be the same as the one for name, so I'm not sure what's going on.

@monfresh
Copy link
Member Author

monfresh commented Sep 4, 2015

I think description is not being included either. My guess is that those fields require string_agg like the categories and keywords, which do work.

@monfresh monfresh added the bug label Sep 15, 2015
@monfresh
Copy link
Member Author

I can't reproduce this. I think it might have been because of the way the DB was populated on the demo website. After I saved the example service (thereby triggering the full text search index to update), I was able to get results that match both the service name and description. I also wrote tests for this in the code and they passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant