Skip to main content

DatabaseService Query returning unexpected results

Comments

2 comments

  • Brian Carpenter

    Problem Solved.

    It appears that how the molName is handled within the Query was causing the problem.  The molecule name needs to be within double quotes to be handled correctly otherwise the Lucene queryParser has issues.

    So 

    Query[] searchValues1 = new Query[] {Query.Factory.createFieldQuery(DocumentField.ALL, Condition.CONTAINS, "\"" + molName + "\"")

    0
  • Matthew Cheung

    Hi Brian,

    Great to hear you found and solved the problem :)

    0

Please sign in to leave a comment.