diff --git a/README.md b/README.md index d788492..74dcf8b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,11 @@ to add abstracts, claims and descriptions as fulltext to the existing patents. Using ``` -call db.index.fulltext.queryNodes("patents","Corona") yield node,score match (node)--(p:Patent) return p.LensID,p.Title,labels(node)[0],node.lang,score order by score desc limit 10 +call db.index.fulltext.queryNodes("patents","covid and disease and infection") yield node,score match (node)--(p:Patent) return distinct(p.LensID),p.Title,labels(node)[0],node.lang,score order by score desc limit 10 ``` Returns all patents where in the title, abstract, claim or description the term "Corona" was found. Result contains the Patent LensID, the title, the part where the word was found, the language of that part and the score. + +``` +call db.index.fulltext.queryNodes("patents","corona and protection and infection") yield node,score match (node)--(p:Patent)--(pt:PatentTitle),(p)--(pa:PatentAbstract) return distinct(p.LensID) as patent_id,collect(pt.text) as titles,collect(pa.text) as abstracts, labels(node)[0] as location ,node.lang as language ,score as score order by score desc limit 10 +```