Not sure if this is possible
I have a bunch of 100 keywords and I'm running a MATCH AGAINST query to see if those keywords are present in the table - The query works fine:
SELECT * FROM questions_new WHERE MATCH (question_title,question)
AGAINST ('depreciation amortization npv dcf "discounted cash flow" "cash flow statement" "current assets"' IN BOOLEAN MODE);
This is just a sample query with few keywords
The results are returned as follows:
question_id | question_title | question
1 | what is depreciation | I am trying to do this DCF calculation......
2 | Need help with this | what is a cash flow statement
3 | Cannot solve this problem | Can you give more examples on npv
This is a sample result set. Obviously my result set is much larger.
Now looking at the question_title or question - its very difficult for me to find out which keyword that was matched against as the keyword list is huge.
I was wondering if its possible for me to include the matched keyword in the result set as shown below
question_id | keyword | question_title | question
1 | depreciation, DCF | what is depreciation | I am trying to do this DCF calculation......
2 | cash flow statement | Need help with this | what is a cash flow statement
3 | npv | Cannot solve this problem | Can you give more examples on npv
As you can see the first result, shows 2 keywords that were matched - Depreciation and DCF.
Is there anyway to do this.
Thanks in advance Appreciate your help