I’ve optimization problems. In order to search in a node and all its children, i used tf.containsText() function this way
for $a in input()/document where tf:containsText($a/root,“paris”)
A search in the following document didn’t gave me expected results :
To correct this, I changed my query :
for $a in input()/document where $a/root//*[tf:containsText(.,“paris”)]
I get all expected results. Problem is that this kind of request takes more than 15 seconds. All text nodes have been indexed using ‘text’ indexes, all attributes using ‘standard’ indexes, my database has 13000 documents, them weight of each of them is between 10 and 20ko.
Did i make mistake indexing documents ? Is there a way to perform better full text search in a complete document ?