Excluding rep/save conflicts from full text search

Is it possible to prevent $Conflicts from appearing in the result set…either via exclusion from the full text search or non-display of them in $$SearchTemplateDefault? Thank you very much.

Subject: RE: Excluding rep/save conflicts from full test search

Use the view’s selection formula to exclude them, e.g. by @Isunavailable($Conflict)

Subject: RE: Excluding rep/save conflicts from full test search

hi andre. I’ve done that on “regular” views but I don’t see how I can do that to filter search results, since the only access to those that I know of is the $$SerchTemplateDefault ~form~…

Subject: RE: Excluding rep/save conflicts from full test search

Aren’t you searching a view, when you search? Which view? What’s the selection formula of the view?

I don’t know a way to write the query to exclude them. They contain an item called $Conflict which isn’t in non-conflict documents, but the item is blank, so there’s no way for a full-text search to distinguish it vs. it being absent.

Subject: RE: Excluding rep/save conflicts from full test search

hi…yeah, you were right. For some reason i was stuck on the view displaying in the browser ui rather than the search being on a backend view. I’ve applied the fix to the search view. Thank a lot for your time.

Subject: RE: Excluding rep/save conflicts from full test search

“I don’t know a way to write the query to exclude them.”

I bet you do. :stuck_out_tongue:

NOT [$Conflict] is present

http://www.alanlepofsky.net/alepofsky/alanblog.nsf/dx/searching-for-blank-fields

Subject: RE: Excluding rep/save conflicts from full test search

The problem is that “is present” doesn’t distinguish between absent and blank.

Subject: RE: Excluding rep/save conflicts from full test search

True, but for NOT [xyz] is present, that doesn’t make a difference.

Anyhow, I still do not see an advantage over using an appropriate SELECT formula, unless you want to be able to either do or do not include conflicts in a search.

Subject: RE: Excluding rep/save conflicts from full test search

True, but for NOT [xyz] is present, that doesn’t make a difference.

We’re trying to distinguish between documents that have no $Conflict item, and ones that have a $Conflict item but the value of that item is “”. What search expression would you write, exactly? [$Conflict] is present is false in both those cases.

Subject: Excluding rep/save conflicts from full test search - I’ve been lazy

Oops. sorry. I did a quick test prior to posting, but because I was too lazy to create a conflict first, I just added a $Conflict item. Out of habit and without interception from my cerebrum my afterbrain made me enter a value of “1” instead of leaving it blank …

Of course you’re right, this will not work with real