Re: [pmwiki-users] Searching in PTVs

2011-09-05 Thread Petko Yotov
On Monday 05 September 2011 21:35:55, Marius Stoica wrote :
> Is there a way to search inside the value field of PTVs?

Yes, in the search box or in a (:pagelist:) use 

   $:PTV=*searchterm*

All your pages are open and parsed to extract the variables, so this search 
may be slow if you have many pages. If you can, you should try to limit the 
number of pages, for example to a single WikiGroup where the results are 
supposed to be.

Petko

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching with Unicode ranges

2010-01-10 Thread Petko Yotov
On Sunday 10 January 2010 17:37:04, Maxim wrote :
> If I attempt to search (or pagelist) using a range of characters in
...
> If I use Unicode characters in that range, things go wrong:
> 
> http://www.pmwiki.org/wiki/PmWikiJa/PmWikiJa?action=search&q=name%3DPmWikiJ
> a%2F[%E3%82%A2-%E3%82%A4]*
...
> It seems to be expanding the Unicode subrange that is searched. Any
> suggestions on how to tackle this? 

This should be fixed in the next version 2.2.9 -- it is now enabled on 
pmwiki.org (in UTF-8 WikiGroups) and you can get it from Subversion.
  http://www.pmwiki.org/wiki/PmWiki/Subversion

Thanks,
Petko

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching and group specifics

2007-08-01 Thread Ian MacGregor


On Wednesday 01 August 2007 11:26:49 am Patrick R. Michaud wrote:
> On Wed, Aug 01, 2007 at 09:26:34AM -0700, Ian MacGregor wrote:
> > I have two questions.
> >
> > 1) How do I make a searchbox that will search only within a certain
> > group?
>
> (:searchbox group=SomeGroup :)
>
> > 2) How do I make a pages in a certaingroup use a skin other than
> > the skin used by the site?
>
> Create a per-group customization file (e.g., local/SomeGroup.php)
> and set the $Skin variable there:
>
> $Skin = 'otherskin';
Thank you. As soon as I sent the email, I realised the bit about the per-group 
customisation. And then I felt silly for asking :)

Regards,
Ian MacGregor

>
> Pm

-- 
http://www.imacgregor.com
MacGregor Despite Them!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching and group specifics

2007-08-01 Thread Patrick R. Michaud
On Wed, Aug 01, 2007 at 09:26:34AM -0700, Ian MacGregor wrote:
> I have two questions.
> 
> 1) How do I make a searchbox that will search only within a certain group?

(:searchbox group=SomeGroup :)

> 2) How do I make a pages in a certaingroup use a skin other than 
> the skin used by the site?

Create a per-group customization file (e.g., local/SomeGroup.php)
and set the $Skin variable there:

http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-06-09 Thread Patrick R. Michaud
On Thu, Jun 07, 2007 at 04:58:48PM -0400, The Editor wrote:
> On 6/7/07, DaveG <[EMAIL PROTECTED]> wrote:
> > > Is it possible to change the search action so that it doesn't bring up the
> > > PmWiki pages when you search for
> > > something? I appreciate it a lot if someone answer my question.
> >
> > Putting this inside config.php will exclude the PmWiki group from 
> > search results, which is what I think your asking for.
> >
> > $SearchPatterns['default'][] = '!^PmWiki\\.!';
> 
> I believe you can also put group=-PmWiki in the search box and it will
> do the same thing without having to edit the config file.

It can also be put into the (:searchresults:) directive on 
the Site.Search page:

  (:searchresults group=-PmWiki :)

Pm

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-06-07 Thread Ian MacGregor

On Thursday 07 June 2007 1:58:48 pm The Editor wrote:
> On 6/7/07, DaveG <[EMAIL PROTECTED]> wrote:
> > Putting this inside config.php will exclude the PmWiki group from search
> > results, which is what I think your asking for.
> >
> > $SearchPatterns['default'][] = '!^PmWiki\\.!';
> >
> >  ~ ~ Dave
> >
> > On Thu, 7 Jun 2007 14:08:12 -0400, [EMAIL PROTECTED] 
wrote:
> > > Hello,
> > >
> > > Is it possible to change the search action so that it doesn't bring up
> > > the PmWiki pages when you search for
> > > something? I appreciate it a lot if someone answer my question.
> > >
> > > Thank you,
> > > Naeimeh
>
> I believe you can also put group=-PmWiki in the search box and it will
> do the same thing without having to edit the config file.
I think I'd rather edit the config.php file, since that is a one-time thing, 
than have to remember what to include in the search box. Also, my visitors 
may not understand how to use that in the search box.

Ian MacGregor

>
> Cheers,
> Dan
>
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
-- 
http://www.imacgregor.com
MacGregor Despite Them!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-06-07 Thread The Editor
On 6/7/07, DaveG <[EMAIL PROTECTED]> wrote:
>
> Putting this inside config.php will exclude the PmWiki group from search 
> results, which is what I think your asking for.
>
> $SearchPatterns['default'][] = '!^PmWiki\\.!';
>
>  ~ ~ Dave
>
> On Thu, 7 Jun 2007 14:08:12 -0400, [EMAIL PROTECTED] wrote:
> > Hello,
> >
> > Is it possible to change the search action so that it doesn't bring up the
> > PmWiki pages when you search for
> > something? I appreciate it a lot if someone answer my question.
> >
> > Thank you,
> > Naeimeh


I believe you can also put group=-PmWiki in the search box and it will
do the same thing without having to edit the config file.

Cheers,
Dan

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-06-07 Thread DaveG

Putting this inside config.php will exclude the PmWiki group from search 
results, which is what I think your asking for.

$SearchPatterns['default'][] = '!^PmWiki\\.!';

 ~ ~ Dave

On Thu, 7 Jun 2007 14:08:12 -0400, [EMAIL PROTECTED] wrote:
> Hello,
> 
> Is it possible to change the search action so that it doesn't bring up the
> PmWiki pages when you search for
> something? I appreciate it a lot if someone answer my question.
> 
> Thank you,
> Naeimeh
> **
> To help combat SPAM DALSA will no longer return delivery failure
> notifications for incorrect or invalid addresses.
> 
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This email message has also been swept for the presence of computer
> viruses
> 
> Please note that DALSA employee addresses have been standardized to
> dalsa.com-- Please update your address book as may be required
> **
> 
> 
> 


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-04-09 Thread Patrick R. Michaud
On Mon, Apr 09, 2007 at 05:09:50PM +, Sandy wrote:
> DaveG  solidgone.com> writes:
> > DaveG wrote:
> > > I tried searching for "--post-data" on pmwiki.com, 
> > > and the request consistently times out. Searching on
> > > "post-data" works fine. Is this expected behavior? 
> > 
> > Not that's it's a big problem, but is this a bug that prevents searching 
> > on a prefixed "--" or is there a larger issue with searching for odd 
> > characters?
> 
> If a term begins with a '-', it means "not including". So maybe there's some
> recursion happening?

Short answer:  Search for "--post-data", including the quotation
marks.  PmWiki quickly finds the desired page(s).

Long answer:  If a search is done for --post-data without the questions
marks, then PmWiki sees the initial hyphen as meaning "exclude this
phrase", so PmWiki does a search for all pages that do not include
the string "-post-data".

However, the current structure of .pageindex doesn't really lend itself
to excluded phrases, so pmwiki.org is searching the text of all of
the pages on the site in order to determine which are to be excluded,
and that's taking longer than the maximum execution time of 30 seconds.

That's why a search for "post-data" is quick -- finding pages that
do include a specific phrase can use .pageindex.

So, I probably need to increase the execution time on pmwiki.org.  If
this is really common/important, I could see about adjusting the 
PageIndex() routines to be able to optimize excluded term searches
as well as included terms.

Hope this helps,

Pm

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-04-09 Thread Sandy
DaveG  solidgone.com> writes:

> 
> Not that's it's a big problem, but is this a bug that prevents searching 
> on a prefixed "--" or is there a larger issue with searching for odd 
> characters?
> 
> DaveG wrote:
> > I tried searching for "--post-data" on pmwiki.com, and the request
consistently times out. Searching on
> "post-data" works fine. Is this expected behavior? 
> > 
> >  ~ ~ Dave
> > 

If a term begins with a '-', it means "not including". So maybe there's some
recursion happening?

Sandy



___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Searching

2007-04-08 Thread DaveG
Not that's it's a big problem, but is this a bug that prevents searching 
on a prefixed "--" or is there a larger issue with searching for odd 
characters?

DaveG wrote:
> I tried searching for "--post-data" on pmwiki.com, and the request 
> consistently times out. Searching on "post-data" works fine. Is this expected 
> behavior? 
> 
>  ~ ~ Dave
> 
> 
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users