If posts have specific topics and you're only worried about it when people are creating new topics then you could look for a topic with that specific title, or return aggregate search results for all the words.. or something.
2008/12/9 Henrik Nyh <[EMAIL PROTECTED]> > > class Post < ActiveRecord::Base > validates_uniqueness_of :body > end > > ? > > On Tue, Dec 9, 2008 at 7:10 AM, agib <[EMAIL PROTECTED]> wrote: > > > > On my site I want to prevent people from posting the same thing > > twice... so I want to run a search once the user is done with the post > > to prompt them to make sure their post is unique. Using the entire > > post as a search query doesn't work... should I break it up word by > > word? I'm using sphinx with thinking-sphinx... has anyone encountered > > this before? > > > > I was thinking of searching all the words individually and picking > > merging the smallest search result sets... > > > > Thanks, > > Aaron > > > > > > > > > -- Appreciated my help? Recommend me on Working With Rails http://workingwithrails.com/person/11030-ryan-bigg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
