--- a/tests/pythonapi/pythonapi.txt
+++ b/tests/pythonapi/pythonapi.txt
@@ -1,5 +1,5 @@
 python doc.py
-Xapian query: [(TSTFLDtestfieldvalue1:(wqf=11))]
+Xapian query: [Query((TSTFLDtestfieldvalue1 OR TSTFLDtestfieldvalue1#10))]
 Result count: 1 1
 doc.title: [HTML fields test file: été à noël]
 doc.testfield: [testfieldvalue1]
@@ -24,7 +24,7 @@
 [pcbytes] -> [267]
 [rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html|]
 [relevancyrating] -> [100%]
-[sig] -> [2671402138880]
+[sig] -> [2671383154417]
 [testfield] -> [testfieldvalue1]
 [title] -> [HTML fields test file: été à noël]
 [url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html]
@@ -43,14 +43,14 @@
 [pcbytes] -> [267]
 [rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html|]
 [relevancyrating] -> [100%]
-[sig] -> [2671402138880]
+[sig] -> [2671383154417]
 [testfield] -> [testfieldvalue1]
 [title] -> [HTML fields test file: été à noël]
 [url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html]
 
 Accented query:
 User query [title:"été à noël"]
-Xapian query: [(10 * (Sete PHRASE 3 Sa PHRASE 3 Snoel))]
+Xapian query: [Query(10 * (Sete PHRASE 3 Sa PHRASE 3 Snoel))]
 nres 1
 doc.title: [HTML fields test file: été à noël]
 python extract.py
@@ -58,7 +58,7 @@
 Text length: 3457
 bfbb63f7a245c31767585b45014dbd07
 python simple.py
-Xapian query: [(huniique:(wqf=11))]
+Xapian query: [Query((huniique OR huniique#10))]
 Result count: 2 2
 for i in range(nres):
 Home.ics
@@ -70,7 +70,7 @@
 
 Catched bad mode. (ok)
 python url.py
-Xapian query: [((latin1name_uniquexxx:(wqf=11) AND XPiso8859name))]
+Xapian query: [Query(((latin1name_uniquexxx OR latin1name_uniquexxx#10) AND XPiso8859name))]
 Result count: 1 1
 iso8859-1_????????.txt
 Contents: [LATIN1NAME_UNIQUEXXX