I am looking for some inspiration to implement a search engine for my winforms application. I have a ‘root’ class which has 5 ‘child’ classes as properties. So imagine that class A us my root class and it has the following properties:
- Id
- Name
- ClassB
- ClassC
- ClassD
- ClassE
In the database classA is represented by table A and it has foreign key references to tables B, C, D and E. This relation between A and B,C,D,E are 1:1.
In my application I need to build am advanced search form. So I have a lot of checkboxes, radiobuttons and textboxes. This form must search in all the tables (A,B,C,D,E).
How would you implement this?
If it is necessary to know, I am using the Entity Framework.
How about “flattening” your data using a schema bound view and creating a full text index? Your primary search box and modifiers could be used to manipulate the FTS query.