The idea of getting boolean stuff working with info vars is great.
Would make a nice plugin.  But I think you can do mostly the same with
something like this:

[(info report target=info.page if="inlist '{info.page::{+p}}' 'one' &&
inlist '{info.page::{+p}}' 'two'" template=whatever)]

Not tested or anything, but it seems an easier way to get things
going, as it taps directly into the conditional engine, which is quite
flexible.

What do you think?  Why not do a bit of tinkering and let me know if
this might work. Or if for some reason this doesn't work.

Cheers,
Dan


On Mon, Apr 20, 2009 at 5:03 AM, Martin <[email protected]> wrote:
>
> I do not know if it is possible to check the values of an info page
> with boolean search like
> "return all keys on page info.example with values of x and y and not
> z"
>
> If not I like to suggest something like this.
>
> This could be done by taking some ideas or parts of the search script.
> The search script basically contains these steps:
> - build the index
> - search the index (boolean functions)
> - return page values
>
> Info search would have
> - open some page with key: value1 value2 value3
> - search the values (boolean functions)
> - return key
>
> like
> [(search target="info.tags" info="tag1&&tag2" template="[[{info.tags::
> {+p}}]] )]
>
> I messed around with a custom function and got tag1||tag2 nearly
> working with regex, but had no success with array_intersect to get &&
> working.
>
> So it could be nice to split the search script into three parts:
> - specify a page where search should look on (index, info, whatever)
> - if index return pages, if info return keys, if something else
> specify that format
> - using one set of boolean search functions
>
> since info is basically the same as index - it is an actively managed
> index file.
>
> Greetings, Martin
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to