I'm trying to create a query that does the following:
IF X OR (Y AND Z) with examine. But i can't seem to get the correct result when using the Or() function of umbraco examine.
That query looks correct to me. I would open the index in luke then try and run it. I suspect the problem part is the productCategorynl-be part that udi i am not sure how its stored in index but if you look using luke you may get pointers.
In fact in luke try the end part of query it should match then try the first part and that may not match.
Examine Or() function
Hello,
I'm trying to create a query that does the following: IF X OR (Y AND Z) with examine. But i can't seem to get the correct result when using the Or() function of umbraco examine.
My query :
Any idea's what i'm doing wrong here ? Thanks !
sven,
can you do to string and paste back the generated lucene query?
Hey Ismail,
Here is the query:
query = +productCategorynl-be:\"umb document/79a3bdb0444f4593babe1aa9f7f49886\" (+_NodeTypeAlias:usedproduct +productType:heftruck)"
Sven,
That query looks correct to me. I would open the index in luke then try and run it. I suspect the problem part is the productCategorynl-be part that udi i am not sure how its stored in index but if you look using luke you may get pointers.
In fact in luke try the end part of query it should match then try the first part and that may not match.
Regards
Ismail
Hey Ismail,
I'm not sure why it is registering as productCategorynl-be while i set it as "productCategory" + "_nl-be".
The analyser may be stripping the _ although tbh it should only do that on the query part not field name?
is working on a reply...