Scenario 1 : I want to give "priya" with double quotes. The result should be only priya which is 1. My programming model normally written as (searchtext*) which searches all records. So i given ("priya"*). But it was unable to parse in solr. So i gave ("priya"\*) which gives the result only priya.
i don't understand your question ... if you want to search for: '"priya" with double quotes' then why do you have your code add a '*' to the end?
attempting to guess what you mean: it wounds like you have code which currently assumes that whenever the user types something in to search on, you want to turn it into a prefix search (so you add a '*') but this doesn't work if the user gives you characters that have meaning in the search syntax (like quotes) ... it seems like the "correct" solution is to fix your code so that you only make your previous assumption (about wanting to do a prefix search) if the input doesn't contain any markup characters.
-Hoss