Hi Pat

That worked perfectly.

Many thanks
Greg


On Feb 2, 1:45 am, Pat Allan <[email protected]> wrote:
> Hi Greg
>
> This is actually a requirement of Sphinx which Thinking Sphinx in turn 
> enforces... however, it's pretty easy to get around - just add the following 
> to your index definition:
>
>   indexes "''", :as => :empty
>
> Cheers
>
> --
> Pat
>
> On 02/02/2011, at 12:08 PM, Greg wrote:
>
>
>
>
>
>
>
> > Hi all
>
> > Is it possible to use Thinking Sphinx with attributes only (i.e. no
> > fields)? I only need to use faceted filtering and don't need any
> > fields to be indexed for full text searching.
>
> > I have tried the following:
>
> > define_index do
> >  has size, :facet => true
> >  has colour, :facet => true
> > end
>
> > ...but this results in the following error:
> > "At least one field is necessary for an index"
>
> > Many thanks
> > Greg
>
> > --
> > 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 
> > athttp://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.

Reply via email to