Full-text search and Entity Framework v1: is this possible?

We work in EFv1, and I implement a search control with several filter options. I translated most of them. Where are the clauses and this is normal with EF.

But there is one specific filter that can make my application run very slowly: text search . The column in the database has the corresponding object property in my EF model, but I just can't put Contains there, this is not good for text search.

What do you think is useful to use in this case?

I heard about Lucene, I don't know if it integrates with EFv1.

thank

+3
source share
5

. :

  • , .
  • ( " " ). .
  • ( " " ). ( ).

, , EntityCollection < > .

+1
+1

, , . , ORM , , , .

EF , linq. EF v1 , , .

EF v1.

+1

Lucene.NET EF, , , EF-.

0

EF4 - :

var query = context.ExecuteStoreQuery<Person>(
        "SELECT * FROM People WHERE FREETEXT(*,{0})", 
        searchText
    ).AsQueryable();

This may be easier than creating a stored proc or UDP in some cases. I know your question is about EF1, but someone passing by might find this helpful.

0
source

Source: https://habr.com/ru/post/1725739/


All Articles