We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A query such as:
async function getDuplicates(question: Question): Promise<Question[]> { const session = ravenStore.openSession(); const query = session .query<Question>({ indexName: "Questions/Search" }) .whereEquals("isArchived", false) .whereNotEquals("id", question.id) .whereEquals("level", question.level) .moreLikeThis(q => q.usingDocument( JSON.stringify({ question: question.question, }) ) ) .take(5); if(question.language) query.whereEquals("level", question.level) const similarQuestions = await query.all(); return similarQuestions; }
This fails:
if(question.language) query.whereEquals("level", question.level)
Because the previous operation in not a where, which is what this expects
The text was updated successfully, but these errors were encountered:
Cannot query with where after moreLikeThis ravendb#409
b592432
Merge pull request #417 from ml054/v5.4
7e2e310
Cannot query with where after moreLikeThis #409
ml054
No branches or pull requests
A query such as:
This fails:
Because the previous operation in not a where, which is what this expects
The text was updated successfully, but these errors were encountered: