Libraryless. Click here for Pure Java version (13393L/91K).
1 | sclass SimpleScoredConceptSearch {
|
2 | Concepts cc; |
3 | S query; |
4 | new ScoredSearcher<Concept> searcher; |
5 | |
6 | // use this to filter concepts to be searched |
7 | swappable bool includeConcept(Concept c) { true; }
|
8 | |
9 | run {
|
10 | if (cc != null) for (Concept c : cc.allConcepts()) |
11 | searcher.put(c, allToString(values(allNonConceptFieldValues(c)))); |
12 | } |
13 | |
14 | L<Concept> get() { ret searcher!; }
|
15 | } |
Began life as a copy of #1029865
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029866 |
| Snippet name: | SimpleScoredConceptSearch |
| Eternal ID of this version: | #1029866/1 |
| Text MD5: | d6418a6481bf3652b8cdd73d0b0f5f74 |
| Transpilation MD5: | 904ece5ab309e878ee07102a1c309737 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-09-24 10:42:11 |
| Source code size: | 404 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 395 / 662 |
| Referenced in: | [show references] |