INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Modifying searches under Links  (Read 1698 times)

zzdpmjpr

  • Recent member
  • *
  • Posts: 47
Modifying searches under Links
« on: September 19, 2012, 10:49:26 am »

Hi

I am pretty new here.

I am trying to tailor some of the searches under Links. For example the Wiki search uses Artist - I would rather use Album or Album Artist. A field is referenced [WikiArtistSearchURL]. I can't find where this is held/maintained. Is it possible to set up an alternative and if so where is that done? Also the google search hexify's a field [Search]. Where is this held/maintened?

I couldn't find any information in this area so any help most wlcome

John
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Modifying searches under Links
« Reply #1 on: September 19, 2012, 11:43:26 am »

Some of the fields such as [WikiArtistSearchURL] and [Search] are built-into MC.  [Search] will be based on the currently selected item, and this would vary for different media types.

You can combine various fields and construct a query that uses other fields too.  Examples:

http:////images.google.com//images?q=Hexify([Artist]) Hexify([Album])
http:////www.youtube.com//results?search_query="Hexify(regex([Artist] [Name], /#^(.+?)(?: [[(]extended\b[^)\]]*[)\]])?$#/, 1))"&btn=&type=all
http:////www.allrovi.com//search//movies//Replace([Name], ,+)
Logged
The opinions I express represent my own folly.

zzdpmjpr

  • Recent member
  • *
  • Posts: 47
Re: Modifying searches under Links
« Reply #2 on: September 21, 2012, 03:56:52 am »

Many thanks for the information MrC.

I have got a couple of searches working fine but I can't do it for Wiki and Amazon. Does anyone know where I can find a definitive format for the query URL  for these sites?

Many thanks
John
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Modifying searches under Links
« Reply #3 on: September 21, 2012, 02:21:21 pm »

You can generally work out the necessary search parameters by examining the URL of the search from the site itself.  For example, Brian Eno's Discreet Music search on Amazon:

General:
   http://www.amazon.com/s/field-keywords=brian+eno+discreet+music

Limit to Music area (CDs):
  http://www.amazon.com/s/url=search-alias=music&field-keywords=Brian+Eno+Discreet+Music

Limit to Downloadable Music area (MP3s):
   http://www.amazon.com/s/url=search-alias=digital-music&field-keywords=Brian+Eno+Discreet+Music

Here's an example Search URL to add to the link (searching the CD area for the selected Artist and Album):
   http:////www.amazon.com//s//url=search-alias=music&field-keywords=Replace([Artist] [Album], / , +)

Logged
The opinions I express represent my own folly.

zzdpmjpr

  • Recent member
  • *
  • Posts: 47
Re: Modifying searches under Links
« Reply #4 on: September 21, 2012, 03:48:42 pm »

Many thanks again, MrC
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Modifying searches under Links
« Reply #5 on: September 21, 2012, 03:53:48 pm »

You're welcome.

Which Wiki site are you looking to link, and what fields (Artist, Album, etc.) ?
Logged
The opinions I express represent my own folly.

zzdpmjpr

  • Recent member
  • *
  • Posts: 47
Re: Modifying searches under Links
« Reply #6 on: September 23, 2012, 02:57:29 pm »

This search keeps getting rejected as invalid.

<Item Name="Search URL”> http:////www,en.wikipedia.org/wiki/Special:Search?search= Replace([Album], / , +)</Item>

The manual search I am basing it on is               http://en.wikipedia.org/wiki/Special:Search?search=chord+company

Thanks for your perseverance

John
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Modifying searches under Links
« Reply #7 on: September 23, 2012, 03:10:21 pm »

Double up on Forward Slashes.  The comma after www should be a dot, and no space after the search= term:

   http:////www.en.wikipedia.org//wiki//Special:Search?search=Replace([Album], / , +)
Logged
The opinions I express represent my own folly.

zzdpmjpr

  • Recent member
  • *
  • Posts: 47
Re: Modifying searches under Links
« Reply #8 on: September 25, 2012, 09:59:57 am »

Fraid I can only just see the characters let alone the punctuation on my laptop.

It works fine now. I was also putting other data, like base search url, in, which confused it and me. This is what comes of blundering about in the dark though my world is a little less dark now.

Many thanks
John
Logged
Pages: [1]   Go Up