Ticket content search maybe doesn't work as excepted

Hi,

playing around with the ticket content search I discovered many “false
positive” results.

The _TransContentLimit [1] fetches all transaction, notably also the
EmailRecord and CommentEmailRecord transactions which let the content
search also found matches for stings which are inserted by templates
into outgoing emails.

This isn’t what I would expect. If I search for content I would expect
matches for the content of Create, Comment, Correspond, Forward Ticket
and Forward Transaction (the content of an incoming email or the content
of an RT user input).

Example (vanilla RT 4.2.11 with unindexed search [2] enabled):

  • create a ticket with subject foo and content bar
  • search for: Content LIKE ‘Greetings’

I wouldn’t expect a result here. But the ‘Greetings’ matches the one
from default ‘HTML Autoresponse template’ template [3].

Chris

[1]

[2]
https://bestpractical.com/docs/rt/4.2/full_text_indexing.html#UNINDEXED-SEARCH
[3] rt/initialdata at stable · bestpractical/rt · GitHub

Hi,

playing around with the ticket content search I discovered many “false
positive” results.

The _TransContentLimit [1] fetches all transaction, notably also the
EmailRecord and CommentEmailRecord transactions which let the content
search also found matches for stings which are inserted by templates
into outgoing emails.

This isn’t what I would expect. If I search for content I would expect
matches for the content of Create, Comment, Correspond, Forward Ticket
and Forward Transaction (the content of an incoming email or the content
of an RT user input).

Example (vanilla RT 4.2.11 with unindexed search [2] enabled):

  • create a ticket with subject foo and content bar
  • search for: Content LIKE ‘Greetings’

I wouldn’t expect a result here. But the ‘Greetings’ matches the one
from default ‘HTML Autoresponse template’ template [3].

Chris

[1]
rt/lib/RT/Tickets.pm at stable · bestpractical/rt · GitHub
[2]
Full text indexing - RT 4.2.17 Documentation - Best Practical
[3] rt/etc/initialdata at stable · bestpractical/rt · GitHub

Hi Chris,

The fulltext search applies to all attachments in the DB, which is what I
would expect it to do. I do agree, that a method to choose which type attachments
should be searched like the HistoryFilter function would be a useful enhancement.
In general, a content search on a “noise” word like “Greetings” would not really
be expected to produce useful results. It might me useful to add such terms to
your stop word list in your fulltext system. That would provide more useful
results even in the absence of attachment type filtering.

Regards,
Ken

playing around with the ticket content search I discovered many “false
positive” results.

Yup – known bug:

https://issues.bestpractical.com/Ticket/Display.html?id=19237

  • Alex