FullText Search Problem

Posts   
 
    
Posts: 97
Joined: 29-Apr-2009
# Posted on: 04-Jun-2009 08:27:26   

hello all,

i am suing mysql database and self servicing

i have following code :


JobdetailsCollection jobSearch = new JobdetailsCollection();
        PredicateExpression JobFilter = new PredicateExpression();
JobFilter.Add(new FieldFullTextSearchPredicate(JobdetailsFields.SearchDescription, null, FullTextSearchOperator.Contains, txtKeyword.Text));

jobSearch.GetMulti(JobFilter);


it gives error like this : Object reference not set to an instance of an object. on This line :jobSearch.GetMulti(JobFilter);

can you please help me.

Posts: 97
Joined: 29-Apr-2009
# Posted on: 04-Jun-2009 08:34:05   

Hello all,

sorry again, i have modify the following code :


JobFilter.Add(new FieldFullTextSearchPredicate(JobdetailsFields.SearchDescription, FullTextSearchOperator.Contains, txtKeyword.Text));

so now it is not throw error and not getting result.

in my database i have following string :

"Software Engineer with 2 year ex. in Microsoft technology"

now i am entering keyword in my textbox(txtKeyword.Text) : Microsoft and click on search button.

so it is not giving me any result.

please help me

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 04-Jun-2009 09:21:53   

Is your full text index up to date?

Would you please examine the generated SQL query and run it manually against the database and see if it returns any records.

Posts: 97
Joined: 29-Apr-2009
# Posted on: 04-Jun-2009 14:40:06   

Walaa wrote:

Is your full text index up to date?

Would you please examine the generated SQL query and run it manually against the database and see if it returns any records.

still not getting output. so i have implement like but it is not working 100%

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 04-Jun-2009 22:19:40   

The FullTextSearchOperator is SQL Server specific, unfortunalty it will not work against your MySQL database.

Matt