sql - Search literal within a word -
Is FULLTEXT a way to execute a search that is found in terms ?
Code> Blah, Blah, literally, blah blahliteralblah
blah, blah, literal
Please note that there is no place after a comma.
I want all three cases to be returned.
I think the array of entries should be improved and then manipulating the text on the received data (No search in this case)!
Because any text manipulation or complex query takes more resources and if your database contains too much data, the query becomes very slow! In addition, if you are running your query on a shared server, performance issues are increasing!
After you get the data from the database, you can try to do with regex!
Update: My suggestion is the same, even if you're running your script on a dedicated server! However, if you want to search full-text of the word "verbatim" in the Boolean mode, as you have described, you can remove the +
operator (because you are searching only one word ) And construction as the following query:
SELECT listOfColumsNames where against Milan (colName) (in 'literal *' boolean mode);
However, if you add AND operator, then your query works properly: Testing on Apache server with MySQL 5.1!
I find you full text in Boolean mode.
The only problem with this question is that the word "literally" does not match the word, if it is a sub string within the other word, for example: "textliteraltext" as you have seen, You can not use the *
operator at the beginning of the word!
Therefore, what you are trying to do is the fastest and easiest way to use the %
placeholder, to follow Paul's suggestions:
Comments
Post a Comment