How about "keyword(=)". Just tried it, Seems to work...

Dan


On Fri, Nov 2, 2012 at 10:58 PM, Kevin <[email protected]> wrote:

> Thanks...
>
> I used this in a FAQ section where I added keywords to provide what types
> of FAQs  Then set the keyword to include PROC HWD APPS MISC... like:
>
> !!! Procedure FAQs
> [(search group={p} "keyword(=)PROC" ) fmt="* [[{+p}|+]]")]
>
> !!! Hardware FAQs
> [(search group={p} "keyword(=)HWD" ) fmt="* [[{+p}|+]]")]
>
> !!! Application FAQs
> [(search group={p} "keyword(=)APPS" ) fmt="* [[{+p}|+]]")]
>
> !!! Misc FAQs
> [(search group={p} "keyword(=)MISC" ) fmt="* [[{+p}|+]]")]
>
> Is there a way to say if there is no keyword data field?
>
>
>
> On Fri, Nov 2, 2012 at 10:44 AM, The Editor <[email protected]> wrote:
>
>> I actually added some pretty robust data searching features to
>> BoltWire in one of its later iterations, but the syntax is not
>> intuitive.
>>
>> To work, your site must be properly indexed.
>>
>> Try this
>>
>> [(search group=whatever "field(=)value")]
>>
>> Obviously you can use any field or value. The equal sign can be
>> replaced with any of the following:
>>
>> = equals
>> < less than
>> > greater than
>> & 1|10 (between)
>> , in csv list
>> + anywhere in the string
>> - not in the string
>> ? if set
>> ! if not equal to
>> 0 equals 0 (not sure about these last two)
>> 1 equal 1
>>
>> It's also very fast because it strictly uses the indexed data and
>> doesn't have to look up any actual pages.
>>
>> Took me a bit to reconstruct this info from the code. Suppose it
>> should get documented somewhere... :)
>>
>> Blessings,
>> Dan
>>
>> P.S. Of course DrunkenMonks solution no doubt works as well--if
>> performance is not an issue.
>>
>>
>> On Sat, Oct 27, 2012 at 2:34 AM, DrunkenMonk <[email protected]> wrote:
>> > I would probably store the keywords in the data field as a csv list, and
>> > then search with
>> >
>> > [(search group={p} if="inlist KEYWORD {+:DATA_FIELD}" fmt=...)]
>> >
>> > or something. I forget the best way to target the list in question, but
>> > something like that should work. BW has pretty good methods of edit data
>> > fields as lists too, if you don't know your keywords at creation time.
>> >
>> >
>> > On Saturday, October 27, 2012 6:38:22 AM UTC+2, Kevin wrote:
>> >>
>> >> Pretty sure that I can do this, just not sure what the syntax would be.
>> >>
>> >> In a FAQ section of the website, I want to add a data field to articles
>> >> called keyword.  I want to then use a set number of predefined keywords
>> >> like.
>> >>
>> >> OS
>> >> APPS
>> >> MISC
>> >> HWD
>> >>
>> >> I thought I could do something like below looking for just HWD
>> entries...:
>> >>
>> >> [(search field(keyword)="HWD") group={p} fmt="* [[{+p}|+]]")]
>> >>
>> >> but I am not getting the results that I want.  I want it to list only
>> the
>> >> articles in the current group that match a data field in them called
>> keyword
>> >> that has HWD.  I've tried a couple combinations without any success.
>> >>
>> >> Hope this makes sense.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "BoltWire" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/boltwire/-/QylhlVrThz8J.
>> >
>> > 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.
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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