Skip to content

Tag: search

Random search on an array of size N

I need help fixing my code below. I want to do a random search on an array of size N. Random search randomly picks up an integer from arr to compare. And the process repeats until the integer it is looking for is found (again it is remarked that the membership is guaranteed, otherwise random search obviously …

JavaFX search in listview

I want to search in listview and my code is working but not well enough. The problem is when i write few characters in the search text field not only the result appears, but the rest of the items also appear… The code: Photos: Original list: Sorted list: ListCell implementation: Answer Your problem is n…

How to search in a List of Java object

I have a List of object and the list is very big. The object is Now I have to search for a specific value of an object in the list. Say if value3==’three’ I have to return those objects (My search is not always based on value3) The list is What is the efficient way of doing it? Thanks. Answer

Lucene: Multi-word phrases as search terms

I’m trying to make a searchable phone/local business directory using Apache Lucene. I have fields for street name, business name, phone number etc. The problem that I’m having is that when I try to search by street where the street name has multiple words (e.g. ‘the crescent’), no resu…