@@ -211,6 +211,9 @@
211211 ?+ path [~ ~]
212212 [%x %published ~]
213213 ``directory+!>(published)
214+ ::
215+ [%x %state ~]
216+ ``noun+!>(state)
214217 ::
215218 [%x %lookup @ @ @ $@(~ [@ ~])]
216219 =- ``search+!>(-)
@@ -231,11 +234,16 @@
231234 ~(val by directory)
232235 |= =listing:s
233236 |(=(filter %all) =(filter type.post.listing))
237+ =/ entries (~(get-entries delver [lookup trigrams phonetics]) term)
238+ :: ~& %+ turn
239+ :: entries
240+ :: |= [=hash:s =rank:s]
241+ :: [(~(got by directory) hash) rank]
234242 %+ skim
235243 %- get-listings
236244 %- get-hashes
237245 %- sort-entries
238− (~(get-entries delver [lookup trigrams phonetics]) term)
246+ entries
239247 |= =listing:s
240248 |(=(filter %all) =(filter type.post.listing))
241249 =/ listings (swag [start limit] all)