Hu? It's describe in the link Ahmet's given you.
> I'm trying to filter a query by the value of a numeric field. I can do it
> in Java as follows, but I don't know how to do it with the query syntax,
> and I found no documentation of it.
>
> @Test
> public void testFqWc() throws Exception {
> IndexSearcher searcher = wc();
> * Filter wc3 = NumericRangeFilter.newIntRange(wc, 3, 3, true,
> true);* final MatchAllDocsQuery allQ = new MatchAllDocsQuery();
> TopDocs allDocs = searcher.search(allQ, 10);
> assertEquals(1, allDocs.totalHits);
> int wc =
> Integer.parseInt(searcher.doc(allDocs.scoreDocs[0].doc).get(this.wc));
> assertEquals(3,wc);
> TopDocs docs = searcher.search(allQ, wc3, 10);
> assertEquals(allDocs.totalHits, docs.totalHits);
> }
>
> On Sun, Jun 19, 2011 at 12:43 PM, Ahmet Arslan <[email protected]> wrote:
> > > Beside creating an index with just the site in question, is
> > > it possible like
> > > with Google to search for results only in a given domain?
> >
> > If you have an appropriate field that is indexed, yes. fq=site:foo.com
> > http://wiki.apache.org/solr/CommonQueryParameters#fq