| | 1 | = GnowsisSearch = |
| | 2 | |
| | 3 | Search the resource-storage and the pimo-storage united. |
| | 4 | |
| | 5 | Use this to find resources and things, based on Lucene-style text queries. |
| | 6 | |
| | 7 | Usage: |
| | 8 | {{{ |
| | 9 | GnowsisSearch s = Gnowsis.getGnowsisSearch(); |
| | 10 | SearchResult result = s.doFulltextSearchQuery("hello"); |
| | 11 | // iterate through uri/label/type returned inside the tags. |
| | 12 | Iterator<SearchHit> it = result.getResults(); |
| | 13 | while (it.hasNext()) |
| | 14 | { |
| | 15 | SearchHit hit = it.next(); |
| | 16 | System.out.println("found resource or thing: " + hit.getUri() + " of type: "+ hig.getClassUri()); |
| | 17 | } |
| | 18 | }}} |