How to write conditional query in Solr?
<p>I am new to sonr and I have to write a conditional query. I just wanted to know can I write a query with multiple conditions. </p>

<p>I have four column and the query condition is something like following:-</p>

<p>Columns: name, address, city, state</p>

<p>Now if someone is searching by keyword "Romania" then the result should be based on following conditions:-</p>

<ol>
<li>Search in name columns if keyword match with the name column then return the data and do not go for any further column.</li>
<li>If name column doesn't have that keyword then it will go to the address column and similar to the first step if result found then return the data otherwise it will go to next column.</li>
</ol>

<p>It is a priority search in which the priory of columns to be used in search is predefined. If sonr provide any such functionality I want to use that instead of writing any fuzzy logic. </p>

<p>Thanks</p>