I want to be able to search for feeds by substring in their titles,
the E/R looks like this at the moment:
(class +Feed +Entity) #
(rel fid (+Key +Number)) #
(rel title (+Idx +String)) #
(rel xmlUrl (+Key +String)) #
(rel htmlUrl (+Key +String)) #
(rel lastFetch (+Number))
The +Idx wasn't there when the feeds in question were first created, I
added it because I thought it would be necessary or speed things up.
Anyway, I ran the following in the hopes of generating the index,
"after the fact":
(mapc '((F)(put!> F 'title (; F title))) (collect 'fid '+Feed))
And then my test query looks like this:
(mapc show
(solve
(quote @Str "big"
(select (@Feeds)
((title +Feed @Str))
(tolr @Str @Feeds title)))
@Feeds ))
Which wouldn't return anything so I tested this instead:
(mapc show
(solve
(quote @Str "big"
(select (@Feeds)
((fid +Feed T))
(tolr @Str @Feeds title)))
@Feeds ))
Which returns all feeds whose title starts with a "b". What did I do wrong?
/Henrik
--
UNSUBSCRIBE: mailto:[email protected]?subject=unsubscribe