Skip to content

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