Sitedetout - Tutoriels informatiques

Search by extension and Title with a targeted Quick Search

Search by extension and Title with a targeted Quick Search

Often when I’m doing a search, I’m doing it based on something in the Title.  But in addition to that, I often know the extension of the original (native) file I’m looking for as well.  I’ll know if it’s a PowerPoint I’m after…or maybe a zip file. The quickest way for me to do my searching is with the Quick Search in the top right.  So what I’ve done is created a targeted Quick Search to search by both the extension and the Title.   You can do this either as your own individual quick search or an administrator can set it up as a quick search that all users can use.

  1. Go to My Content Server -> My Quick Searches.  If you are an administrator, you should be able to create new quick searches defined by admins.

    Quick Search

  2. Click Create New…
  3. If you have the expanded search form enabled, select Search Forms -> Query Builder Form.

    Query Builder Form

  4. Enter a Quick Search Key and Label.

    Key and Label

  5. In the Query Builder section, click ‘show advanced options’.
  6. In the Query Text box, click ‘Modify Query Text and add the following code:

    <$rsMakeFromString(‘myParms’,’#s’,’myParm’)$><$loop myParms$><$if myFirst$> <AND> dDocTitle <contains> `<$myParm$>` <$else$><$myFirst=1$>dExtension <starts> `<$myParm$>`<$endif$><$endloop$>

  7. Click Save.

Now when you do a quick search, you can either select the type of quick search:

select quick search

Or use the key to specify it:

quick search by key

And if you want to search by just the extension, you can leave off the comma and Title parameter.


Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.

Menu Title
Chargement...

Powered by sitedetout.com