Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do i use Like and Contains clause in Solr Query in C#
Posted
Comments
Sinisa Hajnal 19-May-15 5:49am    
Just like any other query. If you don't know how to use them in SQL, learn that first. Then either use stored procedure that uses them or create sql string in C# just as you would with any other query.
Manoj Sawant 19-May-15 6:03am    
Hello Sinisa , Thanks for the prompt reply.
Can u please explain me with an example.
Sinisa Hajnal 19-May-15 6:23am    
Not before you explain what you need, I cannot blindly write code without knowing what's needed...do you know how to write LIKE in SQL? Do you have written query that is troubling you? If so, please add it to the question. If you have C# code that calls the query in question, show that too. Use Improve question. Thank you.
Manoj Sawant 19-May-15 6:30am    
This is how I write a like query in SQL,
select * from UsersInfo where UserName like '%00%'...
Now can you tell me how to write it in Solr in C# Code...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900