we have currently one searchbox with search and clear button on it. But now we want to add another text box with similar functionality but with exact search on this one. is this something can be implemented ?
if i use "disease" with quotes, sometime it works as exact search but what is the preferred way of implementing
with quotes, i will get the subset of the match right ?
i want to search only exact math.
ex: if i search with A124. we get want only one record even if there are 2 records like A124, A124a.
Also on that checkbox click, how to tell to search only on specific facet ?
with quotes, i will get the subset of the match right ?
i want to search only exact math.
ex: if i search with A124. we get want only one record even if there are 2 records like A124, A124a.
I don't know. Can you just use the first result in this case?
Instead of using a search query, you could make it a filter on that field instead, that will give you only the exact value.
Also how to intercept the request on onSearch to add the quotes ?
Another option would be to create an input box component which uses the setFilter method. See link below where I have a working example. In this example im using the "states" field and setting the value in the input box to the filter when the customer clicks search. An example of this working is searching for "Alaska". It will not match on partial text (also one thing to note that its case sensitive too). Hope this helps!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.