<div dir="ltr">Hello,<div><br></div><div>I have fulltext search implemented with sphinx and mysql 5.6.15.</div><div><br></div><div>The problem is that after upgrade, I started to get these large queries in mysql when using simple search:</div>
<div><br></div><div><br></div><div><div># Time: 140725 13:15:31</div><div># User@Host: rt_user[rt_user] @ localhost []  Id:    26</div><div># Query_time: 10.390028  Lock_time: 0.000276 Rows_sent: 1  Rows_examined: 910059</div>
<div>SET timestamp=1406283331;</div><div>SELECT COUNT(DISTINCT <a href="http://main.id">main.id</a>) FROM Tickets main JOIN Transactions Transactions_1  ON ( Transactions_1.ObjectType = 'RT::Ticket' ) AND ( Transactions_1.ObjectId = <a href="http://main.id">main.id</a> ) LEFT JOIN Attachments Attachments_2  ON ( Attachments_2.TransactionId = Transactions_1.id ) LEFT JOIN AttachmentsIndex AttachmentsIndex_3  ON ( AttachmentsIndex_3.id = Attachments_2.id )  WHERE (main.IsMerged IS NULL) AND (main.Status != 'deleted') AND (main.Type = 'ticket') AND ( (  ( main.Subject LIKE '%<b>word</b>%' OR  ( AttachmentsIndex_3.query = '<b>word</b>;limit=10000;maxmatches=10000' AND Attachments_2.Filename IS NULL )  )  ) );</div>
</div><div><br></div><div><br></div><div>Is there any way that I could make the simple search use the sphinx engine by default for all the queries? Or any way to revert it?</div><div><br></div><div>I also mention that the content search is still working with sphinx as before, if I write fulltext:word I can find the query in the RT_ROOT/var/sphinx/query.log</div>
<div><br></div><div><div>[Wed Jun 25 16:41:45.057 2014] 0.002 sec 0.002 sec [all/0/rel 3 (0,10000)] [rt,rtdelta] word</div><div>[Wed Jun 25 16:41:45.191 2014] 0.002 sec 0.002 sec [all/0/rel 3 (0,10000)] [rt,rtdelta] word</div>
<div>[Wed Jun 25 16:41:58.256 2014] 0.002 sec 0.002 sec [all/0/rel 3 (0,10000)] [rt,rtdelta] word</div><div>[Wed Jun 25 16:42:36.063 2014] 0.002 sec 0.002 sec [all/0/rel 3 (0,10000)] [rt,rtdelta] word</div></div><div><br>
</div><div>Thank you!</div><div><br></div></div>