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

Fulltext :fields support #28

Open
davidkelley opened this issue Aug 21, 2014 · 2 comments
Open

Fulltext :fields support #28

davidkelley opened this issue Aug 21, 2014 · 2 comments

Comments

@davidkelley
Copy link
Contributor

Hi jasonmk, I'd like to be able to search over models using specific fields, although I noticed that in your documentation for the class the :fields option is not yet implemented. Is this still the case?

Happy to do the work for this if you can point me in the right direction 👍

@jasonmk
Copy link
Owner

jasonmk commented Aug 21, 2014

I seem to recall that I never implemented it because I think it requires the disMax parser, and I'm currently defaulting the Lucene parser. It's been a really long time though, so I might be wrong on that. It might be a good time to also investigate using disMax (or eDisMax) as the default.

If you want to take a stab at implementing the fields option, it would be in Relation#query_via_solr. The one thing to keep in mind is that currently, if you pass .fulltext multiple times, they get AND'd together. In this case, the fulltext queries will have to go against the same fields. The Apache wiki appears to be down right now, but there's a page up there somewhere that shows what URL parameters have to be set to specify the fields.

@davidkelley
Copy link
Contributor Author

Cool, w.r.t. the Lucene and disMax parser I will check this out before I start any implementation, thanks for giving me the heads up on this.

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

No branches or pull requests

2 participants