Hi John,

 

What about using the intersect operator on the two result sets ?

 

Best regards,

Fabrice Etanchaud

Questel/Orbit

 

 

De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de John Best
Envoyé : vendredi 28 novembre 2014 10:35
À : basex-talk@mailman.uni-konstanz.de
Objet : [basex-talk] How to use ft:search() for querying 2 or more phrases?

 

Hi BaseX Team,

The subject itself is explanatory. I have following query -

ft:search("Articles", ("electromagnetic waves"), map { 'mode':='Phrase' })/ancestor::Doc
return $x

This query searches for "electromagnetic waves" as a phrase. I want to search another phrase "electromagnetic particles" with the previous phrase.

List only those Articles having both these phrases.


--

Have a nice day
JBest