Skip to content

Commit

Permalink
One more sample
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrizic committed Mar 26, 2020
1 parent 205a78d commit 6c5f444
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 6c5f444

Please sign in to comment.