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

Add support for parsing Solr term vectors #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add support for parsing Solr term vectors #22

wants to merge 4 commits into from

Conversation

cpence
Copy link

@cpence cpence commented Feb 2, 2012

The Solr term vector syntax is ridiculously arcane, and since I wrote up some code to parse it for a project of mine, I thought I'd contribute it here.

I've done my best to stick to "house style," let me know if you'd like this patch prepared in a different way. I've got a module to mix into the Response class (as 'termVectors' lives in the response), and a module to mix into each document, which pulls out the term vector arrays from the response and turns them into some actually useful Ruby code.

I've also included a spec test, based on some of my own Solr data.

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

Successfully merging this pull request may close these issues.

1 participant