Thanks, Mickaël - but I'm afraid this isn't quite what I need. My model has a field with long text passages, and faceting on that field doesn't help. I'm looking for the individual terms out of that field that would return a given instance.
Maybe an example would help. Say I've got a Paragraph model with a content field, and I load my database up with the contents of a book, split into individual paragraphs. What I want is to pick out a paragraph (#32, for instance), and see which terms from the paragraph's content would return it — so "the" wouldn't be very useful, but "ninja" might appear in only five of the paragraphs, and I'd want to see those five. Does that make more sense? Thanks! Ben On Mar 24, 6:23 pm, Mickaël <[email protected]> wrote: > Hi Ben, > > You want to sort the result into categories like : "Results are : > [words] [number_words] in Model docs" ? > > It's like faceting isn't it ? > > @facet_model = Model.facet("query") > And after, in @facet_model you will see each indexes of you model > sorted by attribute. > > I don't know if this method is right for you. > > Mickaël. > > On Mar 24, 5:45 pm, Ben Scofield <[email protected]> wrote: > > > > > Hi all, > > > Does anyone know of a way to ask Sphinx for the terms that a given > > document in a set scores most highly on? I.e., I've got 1000 docs, and > > I want to see the terms that would return #472 above the others... > > > Thanks! > > Ben Scofield --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
