I have a MongoDB database with lots of text, my client wants to search in it with:
LIKE "%term%"
is there any full text search engine that could index such searching? P.S : I'm using php and MongoDB.
I have a MongoDB database with lots of text, my client wants to search in it with:
LIKE "%term%"
is there any full text search engine that could index such searching? P.S : I'm using php and MongoDB.
The below Query will fetch exact word $term from the DB table coulmn value.
SELECT * FROM sometable WHERE somefield LIKE '% $term %' OR somefield LIKE '$term %' OR somefield LIKE '% $term'
http://docs.mongodb.org/manual/core/text-search/ might be of interest to you. This is new in MongoDB 2.4 and it includes support for text index. It appears that this is currently a beta feature, though.