[#1506] Advance Search - Search by name the OR option should be captalized 

- Changed the regex in to_lucene_query in search_criteria to be case-insensitive. The same was done in method build_joins.
- Defect is fixed, search can be done using OR/or.