allvalues (all index values replacement)

The <allvalues/> wildcard retrieves all existing values of an index. This can be useful when you want to know the values that have been indexed without having to list each of them manually in the query.

It can be used with all operators, but it is most useful with the <andnot> operator. For example, to retrieve all the documents that contain at least one indexed newspaper name, excluding the newspaper "La Presse", use the following query:

<?xml version="1.0" encoding="UTF-16"?>
<query VERSION="4.5" RESULTSPACE="R1">   
   <key NAME='Newspaper'>   
      <andnot>        
         <allvalues/>
         <elem>La Presse</elem>
      </andnot>                    
   </key>
</query>   
Here's another example of using <allvalues/> with the <andnot> operator. This query will return all the newspaper articles that mention "Trudeau" in all the sections, except for the Sports section.
<?xml version="1.0" encoding="UTF-16"?>
<query VERSION="4.5" RESULTSPACE="R1">
   <andkey>
      <key NAME="FullText">
         <elem>Trudeau</elem>
      </key>
      <key NAME="Section">
         <andnot>
            <allvalues/>
            <elem>Sports</elem>
         </andnot>
      </key>
   </andkey>
</query>