This is all just adding the appropriate filter query (fq) on the
query you generate I think.. Something like
fq=url:(nytimes.com). Of course you have to have a url field
that's appropriately analyzed for this to work like you want.
Best
Erick

On Fri, Jan 13, 2012 at 9:46 AM, remi tassing <tassingr...@gmail.com> wrote:
> Hello all,
>
> I think it's possible with Solr to search within a specific domain (like
> with google). How is done?
>
> Ref:
> http://support.google.com/websearch/bin/answer.py?hl=en&answer=136861&rd=1
> *Search within a specific website (site:)*
> Google allows you to specify that your search results must come from a
> given website. For example, the query [ iraq site:nytimes.com ] will return
> pages about Iraq but only from nytimes.com. The simpler queries [ iraq
> nytimes.com ] or [ iraq New York Times ] will usually be just as good,
> though they might return results from other sites that mention the New York
> Times. You can also specify a whole class of sites, for example [ iraq
> site:.gov ] will return results only from a .gov domain and [ iraq site:.iq
>  ] will return results only from Iraqi sites.

Reply via email to