Hi Piotr

As far as I know, Sphinx doesn't support the syntax you're after  
(although considering I only learnt the @(name,street) trick a few  
weeks ago, don't take my word as gospel). There's nothing in TS that  
provides a shortcut either, so I think you'll have to stick with your  
current method.

It might be worth asking if the negation syntax is possible on the  
Sphinx forum though.

Cheers

-- 
Pat

On 10/06/2009, at 10:54 AM, Piotr Sarnacki wrote:

>
> Hi,
>
> I have a pretty complex index in one of my models and I've been
> requested to extend searching for some more fields but only for admin
> area. Is there any way to exclude those fields in frontend?
>
> Sphinx supports this syntax: "@(name,street,city,tags) query" but it
> seems to fail with negation of field: "@(!only_for_admin) query)"
>
> While TS knows which fields are indexed, is there any way to do search
> on all but one fields?
>
> If it's not, I'll just stick with @(all fields for fronted), but maybe
> there is a better way to do that.
>
> Cheers,
>
> Piotr
> >


--~--~---------~--~----~------------~-------~--~----~
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