Simple Search function

What modifications would need to be made to make the Simple Search
function accept more than one word?

It can do two words when the search terms are put in single
quotes…but the string has to match exactly a string in the Subject.

If the ticket subject is “barack obama beat hillary clinton”…a
search for:

barack obama

…yields no results…but…

‘barack obama’

…does yield results.

I can’t seem to find a way to make it accept a search phrase such as:

barack hillary

and yield a result.

And yes, I know the advanced search feature can be used…but I’m
told that that is too cumbersome for the average user.

Any help would be appreciated.

Thanks.

In fact, this function I describe below IS built into the new RT
somewhere…or Best Practical developed it for themselves…

Their website at rt3.fsck.com DOES handle searches the way I’d like
them to be handled.

A search for:

anti anxiety

…finds:

10208 antisocial-personality-disorder-anxiety new Pushmi Nobody 0
20 hours ago 20 hours ago 0
10211 anti-depressents-for-anxiety new Pushmi Nobody 0
15 hours ago 15 hours ago 0

So there is some method to have it handle searches in a better way.

Anyone?On 16-Jul-08, at 2:14 PM, Jake Zack wrote:

What modifications would need to be made to make the Simple Search
function accept more than one word?

It can do two words when the search terms are put in single
quotes…but the string has to match exactly a string in the Subject.

If the ticket subject is “barack obama beat hillary clinton”…a
search for:

barack obama

…yields no results…but…

‘barack obama’

…does yield results.

I can’t seem to find a way to make it accept a search phrase such as:

barack hillary

and yield a result.

And yes, I know the advanced search feature can be used…but I’m
told that that is too cumbersome for the average user.

Any help would be appreciated.

Thanks.

In fact, this function I describe below IS built into the new RT
somewhere…or Best Practical developed it for themselves…

We don’t have any special code in there for this. Have you tested
3.8.0 locally?

Yep, installed rt 8.0 today.

I have a ticket called:

AGM 2007 Member pre-registration login page

When I search for “AGM”, it works. When I search for “2007”, it works.

When I search for:

AGM 2007

it fails.

‘AGM 2007’ works.

I want to be able to parse my search query string, and check both (or
all) of the arguments I’ve supplied it.

Searching for:

AGM Member

…should return this ticket in it’s search results, much like the
behaviour of rt3.fsck.com.On 16-Jul-08, at 3:44 PM, Jesse Vincent wrote:

On Jul 16, 2008, at 3:31 PM, Jake Zack wrote:

In fact, this function I describe below IS built into the new RT
somewhere…or Best Practical developed it for themselves…

We don’t have any special code in there for this. Have you tested
3.8.0 locally?

Their website at rt3.fsck.com DOES handle searches the way I’d
like them to be handled.

A search for:

anti anxiety

…finds:

10208 antisocial-personality-disorder-anxiety new Pushmi
Nobody 0
20 hours ago 20 hours ago 0
10211 anti-depressents-for-anxiety new Pushmi Nobody 0
15 hours ago 15 hours ago 0

So there is some method to have it handle searches in a better way.

Anyone?

On 16-Jul-08, at 2:14 PM, Jake Zack wrote:

What modifications would need to be made to make the Simple
Search function accept more than one word?

It can do two words when the search terms are put in single
quotes…but the string has to match exactly a string in the
Subject.

If the ticket subject is “barack obama beat hillary clinton”…a
search for:

barack obama

…yields no results…but…

‘barack obama’

…does yield results.

I can’t seem to find a way to make it accept a search phrase such
as:

barack hillary

and yield a result.

And yes, I know the advanced search feature can be used…but I’m
told that that is too cumbersome for the average user.

Any help would be appreciated.

Thanks.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

OK…I lied.

Well, not below…but initially.

The RT 8.0 search function does work properly…UNLESS…as
below…there are numbers involved.

I created ticket subject ‘one two three four five six’, and a search of:

one six

Finds it.

But if the search string contains numbers, it fails.

That a bug, or intentional for some reason I don’t understand? :)On 16-Jul-08, at 3:59 PM, Jake Zack wrote:

Yep, installed rt 8.0 today.

I have a ticket called:

AGM 2007 Member pre-registration login page

When I search for “AGM”, it works. When I search for “2007”, it
works.

When I search for:

AGM 2007

it fails.

‘AGM 2007’ works.

I want to be able to parse my search query string, and check both
(or all) of the arguments I’ve supplied it.

Searching for:

AGM Member

…should return this ticket in it’s search results, much like the
behaviour of rt3.fsck.com.

On 16-Jul-08, at 3:44 PM, Jesse Vincent wrote:

On Jul 16, 2008, at 3:31 PM, Jake Zack wrote:

In fact, this function I describe below IS built into the new
RT somewhere…or Best Practical developed it for themselves…

We don’t have any special code in there for this. Have you tested
3.8.0 locally?

Their website at rt3.fsck.com DOES handle searches the way I’d
like them to be handled.

A search for:

anti anxiety

…finds:

10208 antisocial-personality-disorder-anxiety new Pushmi
Nobody 0
20 hours ago 20 hours ago 0
10211 anti-depressents-for-anxiety new Pushmi Nobody 0
15 hours ago 15 hours ago 0

So there is some method to have it handle searches in a better way.

Anyone?

On 16-Jul-08, at 2:14 PM, Jake Zack wrote:

What modifications would need to be made to make the Simple
Search function accept more than one word?

It can do two words when the search terms are put in single
quotes…but the string has to match exactly a string in the
Subject.

If the ticket subject is “barack obama beat hillary clinton”…a
search for:

barack obama

…yields no results…but…

‘barack obama’

…does yield results.

I can’t seem to find a way to make it accept a search phrase
such as:

barack hillary

and yield a result.

And yes, I know the advanced search feature can be used…but
I’m told that that is too cumbersome for the average user.

Any help would be appreciated.

Thanks.


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

OK…I lied.

Well, not below…but initially.

The RT 8.0 search function does work properly…UNLESS…as
below…there are numbers involved.

I created ticket subject ‘one two three four five six’, and a search
of:

one six

Finds it.

But if the search string contains numbers, it fails.

The Simple search assumes that any number is a Ticket ID and builds
the query
based on that

-kevin