November Happy Hour will be moved to Thursday December 5th.

How Search for "Hello World" Instead of Serching for "Hello" and "World".

Vote:
 

Hi

We have EPiServer Find in our project, When we Search for "Hellow World" we are getting results from the pages having "Hello" and "World" key words. But we want to see pages haing "Hello World" only.

And is there any method like .WithAndAsDefaultOperator(), If yes, please tell me how to use this method.

Please suggest Your Ideas.

#74107
Aug 21, 2013 8:02
Vote:
 

Hi,
you can use it like this:

            SearchClient.Instance.Search<PageData>().For("hello world")
                .WithAndAsDefaultOperator().GetPagesResult();

    

That should work (I did not actually test it though). 


#74113
Aug 21, 2013 9:05
Vote:
 
#74126
Aug 21, 2013 11:47
Vote:
 

Thanks for the help Skuseth.

#74127
Aug 21, 2013 11:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.