4 ms·
My small advice to Posterous team on search: 1- Work more on equimatch before doing the partial match. e.g.: if I type ‘ruby on rails’ you should worry about
by okeumeni 18y ago
My small advice to Posterous team on search:
1- Work more on equimatch before doing the partial match. e.g.: if I type ‘ruby on rails’ you should worry about returning post with ‘ruby on rails’ first before partial matches. In your case the second and third results do not even have occurrences of ‘ruby on rails’.
2- Your match text algorithm, the one responsible of coloring match text on result in green should focus more on full match for now until you find a way to do partial match effectively. One hint, use a regular expression algorithm, that’s all the help I can give you for now.
Overall you guys are doing a great job.
edit- One more thing here, if I search for 'iness' you return 'business'. This tells me that your going the wrong way on search. You should do more research on the subject of search.
- thorax 18y agoOr use something like Sphinx (or Solr, maybe) which does a lot of the work for you in building a decent search backend.
- rantfoil 18y agoWe used to do prefix and infix search, but the amount of value provided was not huge. It also really blows out your indexes / indexing time. I'd like to add this back at some point, but we're not there yet. As for supporting equimatch using quotes -- its actually not too hard to do this. Just wanted to ship early and iterate rather than expend too much effort getting it perfect. A plan violently executed today is always better than a perfect plan executed weeks in the future. But thanks for the feedback -- these are important search items that need to be addressed.
- okeumeni 18y agoIf I search for ‘iness’ and you return ‘Business’ I wonder what your index look like. If it is what I think, you are going the wrong way rantfoil. This will be very time consuming if you are doing it from scratch; it is worth looking at Sphinx as thorax suggested or any open source.
- rantfoil 18y agoOh, we do use Sphinx. It's excellent. It would be insane to write your own full text searching or rely on MySQL's built in indexing.