Answered
MS SQL search on ntext
I am having a hard time with trying to find a good solution
to searching on a ntext field.
It is for resumes and the max 8000 on varchar wasn't large enough, so I had to switch to a text field. I just want to search on the field, but it takes forever and times out most of the time. Even with a "RequestTimeout"
The query looks like this:
SELECT DISTINCT u.UserID, u.Fname,u.Lname,u.Email,u.DateRegistered,u.Telephone, u.user_type
FROM Users u, E_Resume er
WHERE er.UserID = u.UserID
AND u.RC = #VARIABLES.RC#
AND er.resume LIKE ('%#LCase(FORM.keyword)#%')
I was going to try to use Full-Text searching, but so far the ISP hasn't been able to let me create the "catalog" because of permission issues.
I tried creating a view, but it doesn't make it faster.
I haven't found a way to index, because it is a "text" datatype.
Does anyone have any ideas on how I can fix this?
It is for resumes and the max 8000 on varchar wasn't large enough, so I had to switch to a text field. I just want to search on the field, but it takes forever and times out most of the time. Even with a "RequestTimeout"
The query looks like this:
SELECT DISTINCT u.UserID, u.Fname,u.Lname,u.Email,u.DateRegistered,u.Telephone, u.user_type
FROM Users u, E_Resume er
WHERE er.UserID = u.UserID
AND u.RC = #VARIABLES.RC#
AND er.resume LIKE ('%#LCase(FORM.keyword)#%')
I was going to try to use Full-Text searching, but so far the ISP hasn't been able to let me create the "catalog" because of permission issues.
I tried creating a view, but it doesn't make it faster.
I haven't found a way to index, because it is a "text" datatype.
Does anyone have any ideas on how I can fix this?
