Hi there,
I don't know if it's a bug or I'm doing something wrong. But whenever I query for documents through OKMSearch (DbSearchModule) with invalid properties I get random results instead of none.
I'm using latest community sources from sourceforge.
How to reproduce.
PropertyGroups.xml:
At least I try to find documents with invalid properties (just to check if a document is in the system containing a specific property).
Thanks for hints.
Regards.
I don't know if it's a bug or I'm doing something wrong. But whenever I query for documents through OKMSearch (DbSearchModule) with invalid properties I get random results instead of none.
I'm using latest community sources from sourceforge.
How to reproduce.
PropertyGroups.xml:
Code: Select all
And now some documents in the system.<property-groups>
<property-group label="test" name="test">
<input label="Input Label 1" name="test.input" />
<select label="Select Label 1" name="test.select" type="simple">
<option label="Option A" value="optiona" />
<option label="Option B" value="optionb" />
<option label="Option C" value="optionc" />
<option label="Option D" value="optiond" />
</select>
<input label="Input Label 2" name="test.inputagain" />
</property-group>
<property-groups>
At least I try to find documents with invalid properties (just to check if a document is in the system containing a specific property).
Code: Select all
Now I get 13 (!) documents. I don't know why I get this 13 documents, but I would assume to get no result, because there is no property "roflmao".Map<String, String> properties = new HashMap<String, String>();
properties.put("roflmao", "awesome");
QueryParams p = new QueryParams();
p.setProperties(properties);
List<QueryResult> res = okm.find(p);
System.out.println(res.size());
Thanks for hints.
Regards.
Last edited by Catscratch on Wed Feb 04, 2015 7:59 am, edited 1 time in total.
