Page 1 of 1

search for a number in metadata

PostPosted:Mon Aug 26, 2019 2:54 pm
by hezovka
We store in OpenKM documents related to customer orders. Each order is 14 digits string with separators, like 703-010-90527403.
This number is registered in metadata for customer order, but when I search for this number it find orders starting with 703, then *010*, but not just ode order with this number.
What is wrong? Should be changed definition in metadata? Should the order number be stored without '-'?

Re: search for a number in metadata

PostPosted:Wed Aug 28, 2019 8:30 pm
by jllort
The problem is the lucene tokenizer what split the text into several words ( take a look at Administration > Tools > List indexes and search your document by the UUID.
Selección_001.png
Selección_001.png (12.74 KiB) Viewed 1655 times
Selección_002.png
Selección_002.png (59.89 KiB) Viewed 1655 times
You should use the WhitespaceAnalyzer take a look at https://docs.openkm.com/kcenter/view/ok ... lyzer.html