I am looking at the query syntax. and i could not figure out how to search ‘and’. I tried “a sentence with and and words after it” i tried +and and \and. It always ignored it. How can i search ‘and’? I am using lucene.net
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you including ‘and’ in the index so its searchable?
If your using the StandardAnalyzer to index your documents, ‘and’ is included in the default stop words list. You can pass your own list of stop words as a string array to the constructor of the StandardAnalyzer if you want to include the word ‘and’ in the index.