You are viewing limited content. For full access, please sign in.

Question

Question

Advanced search multiple docs in the same folder

asked on February 3, 2015 Show version history

I'm trying to search for multiple values within the same field, however the code below returns documents from the entire repositry.

This code should return all documents on the OperationalRecords template, containing the field DocumentType with values either 1.1 Advert or 1.2 Ads but ONLY within Live\Operational2 folder. It currently returns all documents in the entire repository.

{[OperationalRecords]:[DocumentType]="1.1 Advert"} | {[OperationalRecords]:[DocumentType]="1.2 Ads*"} & {LF:LOOKIN="Live\Operational 2"}

 

0 0

Answer

APPROVED ANSWER
replied on February 3, 2015

Your current search looks for for the following:

  1. Documents with the OperationalRecords template and DocumentType field="1.1 Advert"
  2. Documents in the Live\Operational 2 folder with the OperationalRecords template and DocumentType field="1.2 Ads*"

You would need to use parenthesis around the field search like so:

({[OperationalRecords]:[DocumentType]="1.1 Advert"} | {[OperationalRecords]:[DocumentType]="1.2 Ads*"}) & {LF:LOOKIN="Live\Operational 2"}

to achieve the desired search. See this page for more information regarding search operators.

0 0

Replies

replied on February 6, 2015

Hi Levi,

If you still need help with your question, let us know by updating the thread! If however it has been answered, please click the "Mark this reply as the answer" button on the response - Thank you!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.