We would like to have implemented in PHP a search field where the user can type a search pattern and then click a search button to retrieve, out of an XML file (see attached), which entries (identified by its id) match that text in any of its atributes, ordered by number of occurrences.
For instance, searching for "workstation" it should return this list of IDs:
22825 (this first because the keyword appears several times)
22817
22832
Also, when the user starts to type in the search field "works", we would also like it to start predicting the most probable text in the search field, "workstation" in this case.
Thanks!
Hello,
I would like to assist you in the task mentioned. I can do it in Core PHP and will provide you a demo, if you are interested. Please feel free to contact me so that we can discuss further.
Hope to hear from you
Thanks
Sumeer
Hi
Understood but using attached file the order of returned IDs should be:
22825 ('workstation' appears 3 times)
22828 ('workstation' appears 2 times)
22817 ('workstation' appears 1 times)
22832 ('workstation' appears 1 times)
Right?
I completed a similar project very recently. I am ready to start and will deliver the files ASAP (hopefully within few hours if we are able to discuss it soon).
Looking forward to seeing your reply. Thanks.
Regards
Ahsan
I can parse the xml file to objects using a algorithm has the best complexity for a fast response time and display the result in field autocomplete, I already work in many projects have this task