You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by remi tassing <ta...@yahoo.com> on 2011/12/20 14:29:37 UTC

In-web search

Hi,
What is the query syntax for Solr to search within a specific site?
For example in google you can search like this: "Solr site:apache.org"
Remi

Re: In-web search

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi Remi,

That depends on how you've structured and indexed your documents (web pages?) with Solr.

If you've extracted the hostname into a 'hostname' field and indexed it, then you should be able to use syntax like:
  hostname:www.sematext.com

If you've extracted the domain name into a 'domain' field and indexed it, then you should be able to use syntax like:  domain:sematext.com

If you've flipped parts of the hostname or domain in the URL around then you could also search using:
  url:com.sematext*



etc.

Otis
----
Performance Monitoring SaaS for Solr - http://sematext.com/spm/solr-performance-monitoring/index.html



>________________________________
> From: remi tassing <ta...@yahoo.com>
>To: solr-user@lucene.apache.org 
>Sent: Tuesday, December 20, 2011 8:29 AM
>Subject: In-web search
> 
>Hi,
>What is the query syntax for Solr to search within a specific site?
>For example in google you can search like this: "Solr site:apache.org"
>Remi
>
>