Hi Hassan This is because fullscan searches only happen automatically with docinfo set to extern... so perhaps try explicitly setting the match_mode to :fullscan?
UsersProfile.search(:match_mode => :fullscan) UsersProfile.search_count(:match_mode => :fullscan) I just want to note, though, that I've built Thinking Sphinx with the expectation that docinfo is set to extern... although the only dealbreaker I can spot in the Sphinx docs is that attribute updates require it. If that causes issues, let me know, it shouldn't be too hard to patch. Cheers -- Pat On 19/08/2010, at 9:53 PM, Hassan Iftikhar wrote: > > > Just to explain an example, > lets say I have a model named as UsersProfile, when I have set docinfo > as extern and I call UsersProfile.search() it would return all the > records and similarly when I would call UsersProfile.search_count it > would return number of records. But when docinfo is set as inline > nothing works, search would return an empty array and search_count > would return 0. I am really out of ideas here as to what really is > happening. > > > On Aug 19, 10:51 am, Hassan Iftikhar <[email protected]> > wrote: >> Hi all, >> Due to certain limitation I had to use docinfo as inline, but with TS >> v1.3.18 when I set this option the global search or blank search is >> not working i.e. match mode SPH_MATCH_FULLSCAN also search_count >> method is returning 0 but when docinfo is set as extern then every >> thing is working fine. Is it the case that I am missing some thing or >> is this a bug, please advise. >> >> Regards, >> Hassan Iftikhar. > > -- > 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. > -- 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.
