1283 Posts
Bucklash
8 years ago
3
Topic

Hi folks

I am wanting to use the Search Operator Fields

I feel I am close to using it properly...

I have a List and Search type pulling in featured content from my chosen content type.

I want to filter on it having tag 'a', OR tag 'b'.

Any tips?

This screenshot shows what I am doing

In my Search form I have 7 fields:

  1. CCK = This has a live value referencing my intended content type
  2. Article Featured = Live value of what I want (1 is yes, 0 is no)
  3. [ -> ( = Don't know what to call this, I think I'll call it 'Search Operator Start'
  4. Article Tags = This is a Tag field, and grabs the id's of tags. I have a live value set - Only one though as I want to get articles with tag 'x' OR 'y'
  5. OR = This is.. er OR
  6. Tag Id 2 = This is another tag field I created for this search, exactly the same as the 'Article Tags' field
  7. ) <- ] = I think I'll call it 'Search Operator End'

So, what could I be doing wrong

I know that I need 'Search Operator Start and End otherwise the query is not good.

Bucklash

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
2
Level 1

Hi,

your screenshot looks correct, here is another example

as you figured out correctly [( starts custom search operator and )] ends it - or better said it removes defualt one so you need to place in custom operators.

To be able to figure out why it is not working you need to enable debugging in search type, so you will see query that was produced, usually you also need to set the right matching on each field .e.g. with multiple tags it would probably be "any words exact".

1283 Posts
Bucklash
8 years ago
0
Level 2

hi Klas

Much appreciate reply

Will have a go with match options

Good to know I'm on the right track!

Bucklash

1283 Posts
Bucklash
8 years ago
0
Level 2

hi Klas

Much appreciate reply

Will have a go with match options

Good to know I'm on the right track!

Bucklash

Get a VIP membership