Thanks for the reply.
How do you determine in which field you should search based on the user input?
Yes - based on user selection.
I gave 2 input box with check box [include filename too] selection. so user can search in filename too.
You have one search box, right?
Why should it search in different fields in one case or another?
Because we have existing search functionality in sphinx search.
Why not searching in both fields every time?
User needs to search either in content or in filename OR in both fields.
I hope you understood now.
Can you please guide me in correct way?
How mapping should be for exact and partial match?
1 - If search type Partial with "ABCD-DEFG", result should come with "ABCD-DEFG" and "ABCD-DEFGHI".
2 - If search type Exact with "ABCD-DEFG", result should come with "ABCD-DEFG".