It seems Query.FreeText<t>() lacks a functionality of DO 3.X: Search with an * to match words starting by a value.

Example : If I have in my index:

  • text1
  • text2

Query.FreeText<t>("text") will get no result : this is normal. Query.FreeText<t>("text*") will get no result : worked in DO3.X

Is it possible to add this feature?

PS: Query.FreeText<t>("*text") could be a good idea ;)

PPS: Query.FreeText<t> don't work :

  • if you use the entity in a Where clause (ArgumentException)
  • if you use a type T that is not the one that has the ft index but a sub class

I've a sample if you want one.

Updated at 26.04.2010 8:32:02

Here comes the sample : [attachment=0:33qgsq5l][/attachment:33qgsq5l]

There are working requests samples, one sample that does not returns what I want (with *), some throwing exceptions (not surprisingly when you know the sql below)

This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked Apr 23 '10 at 14:32

olorin's gravatar image


One Answer:

Hello olorin,

to be checked and fixed. And yes, the sample would be absolutely helpful.

I've opened the following issue: ... ail?id=638

answered Apr 23 '10 at 15:12

Dmitri%20Maximov's gravatar image

Dmitri Maximov

Thanks a lot!

These will help us drastically.

(Apr 23 '10 at 15:12) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA