Re: [MarkLogic Dev General] Set of elements to search for search:search()

2017-10-23 Thread Florent Georges
Hi Geert, Thank you. Unfortunately, that would require to create fields for any possible combination of elements. The list of elements is computed algorithmically, and that would not be possible with fields. Furthermore, I think that would not allow to give different weights to different elemen

Re: [MarkLogic Dev General] Set of elements to search for search:search()

2017-10-23 Thread Geert Josten
I think I would use a field for this.. Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Florent Georges mailto:li...@fgeorges.org>> Reply-To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Date: Monday, October 23, 2017 at 4:42 PM To: M

[MarkLogic Dev General] Set of elements to search for search:search()

2017-10-23 Thread Florent Georges
Hi, I am using the Search API, AKA search:search(). I need to restrict the set of elements to use for a search string with no specific constraint (e.g. "this AND that" as opposed to "this:that"). As a simplification, let's say I need to restrict the search to two elements, namely "foo" and "bar"