Hi,
How do I make a query that selects products with a custom field that is empty/blank?
BR
Thomas
Hi,
How do I make a query that selects products with a custom field that is empty/blank?
BR
Thomas
Hi Thomas
Lucene does not support that directly - but there is a work around. See the manual: http://doc.dynamicweb.com/documentation-9/platform/indexing-search/indexing-search#2468
BR Nicolai
Thanks, Nice hack :-)
Is there also a way to check if a field of type string[] is "empty" . Meaning that the array do not contains any values?
Should be the same thing. Difference is that if the field is of type array, the check is made multiple times - one for each value.
8.8.0.3
I need to do this again on a DW 8.9 and the link (http://doc.dynamicweb.com/documentation-9/platform/indexing-search/indexing-search#2468) don't work anymore.
Can anyone help with the Is null or empty hack on an normal string?
Hi Thomas
You can find the 9 version here: http://doc.dynamicweb.com/documentation-9/platform/indexing-search/queries#4792
Should be the same on 8.
BR Nicolai
Strange it's not working... But nevermind i will add a custom boolen field to the index handling this
You must be logged in to post in the forum