Forum Moderators: open

Message Too Old, No Replies

Refined search in site using Google search

Search limited to a sub-dir

         

pb9997w

4:29 pm on Apr 26, 2003 (gmt 0)

10+ Year Member



Let's say my site is www.widgets.com and inside I've got
www.widgets.com/retail
www.widgets.com/else

Is anyone aware of a way that, by using Google's search tool in a site to limit its search to a sub-dir, let's say www.widgets.com/retail?

All I'm aware is site:www.widgets.com word_to_be_searched and it brings everything in.

Appreciate your help.

mitchofoz

7:23 pm on Apr 26, 2003 (gmt 0)

10+ Year Member



if you use "site:www.widgets.com inurl:retail word_to_be_searched" you will get all pages that have retail in the url which will be a subset of "site:www.widgets.com word_to_be_searched". however pages like www.widgets.com/else/.../retail/ would still be found. not a perfect solution but a solution nonetheless.

RBuzz

3:15 am on Apr 27, 2003 (gmt 0)

10+ Year Member



queryword site:widgets.com inurl:www.widgets.com/retail

Oaf357

4:25 am on Apr 27, 2003 (gmt 0)

10+ Year Member



This also probably wouldn't be too incredibly difficult to implement into a form on your site.

pb9997w

3:06 pm on Apr 27, 2003 (gmt 0)

10+ Year Member



Thanks for your inputs, mitchofoz, RBuzz and Oaf357. You've proved there's a way to limit the search into a subdir of the site; Great!

Now it's my turn to figure a way to implement it once I've been using Google search tool, they offer for free, on how to add the
inurl:www.widgets.com/retail
after the user has written the queryword in the form field and has hit the submit button.

If anyone is using Google free search, has implemented and would like to help I'd honestly appreciate, though I realize now it's nothing to do with Google forum.

Thanks very much.

RBuzz

7:49 pm on Apr 27, 2003 (gmt 0)

10+ Year Member



PB, do you know much about forms? Like Oaf said, it wouldn't be too much to hack a form for this.

Oaf357

8:56 pm on Apr 27, 2003 (gmt 0)

10+ Year Member



If you use one of Google's co-branding site searches (also free) the answer will be a little more obvious.

I'd have to sit here for a little bit and figure it out and I don't have the time at the moment.

If you need some help though let me know.