Return doc if one or more query keywords occur multiple times

2009-11-12 Thread gistolero
Hello, I am using Dismax request handler for queries: ...select?q=foo bar foo2 bar2&qt=dismax&mm=2... With parameter "mm=2" I configure that at least 2 of the optional clauses must match, regardless of how many clauses there are. But now I want change this to the following: List all documents

Re: Return doc if one or more query keywords occur multiple times

2009-11-13 Thread gistolero
Anyone? Original-Nachricht > Datum: Thu, 12 Nov 2009 13:29:20 +0100 > Von: gistol...@gmx.de > An: solr-user@lucene.apache.org > Betreff: Return doc if one or more query keywords occur multiple times > Hello, > > I am using Dismax request handler for queries: > > ...select?q=fo

delta-import for XML files, Solr statistics

2008-10-24 Thread gistolero
Hello, I have some questions about DataImportHandler and Solr statistics... 1.) I'm using the DataImportHandler for creating my Lucene index from XML files: ### $ cat data-config.xml ... ### No problems with this configuration - All works fine for full-imports, but..

Re: delta-import for XML files, Solr statistics

2008-10-24 Thread gistolero
Thanks for your very fast response :-) > > 2.) > > The documentation from DataImportHandler describes the index update > process for SQL databases only... > > > > My scenario: > > - My application creates, deletes and modifies files from /tmp/files > every night. > > - delta-import / DataImportHa

Calculating peaks

2008-11-06 Thread gistolero
Hello, How can I get ALL the matching documents back? How can I return an unlimited number of rows? Yes, I have read the FAQ and I got your point, but I need Solr to calculate number based peaks for my indexed data: - For each of my documents the text ('text'), the creation time ('date') and o

Re: Calculating peaks

2008-11-06 Thread gistolero
Thank you, Erik. Thats what I need. Sorry, I missed the 'facet' chapter. Original-Nachricht > Datum: Thu, 6 Nov 2008 05:07:39 -0600 > Von: Erik Hatcher <[EMAIL PROTECTED]> > An: solr-user@lucene.apache.org > Betreff: Re: Calculating peaks > Would faceting on date (&facet.field=

Re: Calculating peaks - solrj support for facet.date?

2008-11-07 Thread gistolero
Sorry, but I have one more question. Does the java client solrj support facet.date? QueryResponse knows the getFacetDates() method but I don't understand how to set facet.date, facet.date.start, facet.date.end, and facet.date.gap for the query. It seems that SolrQuery doesn't provide functions

full-import with solrj (solr Java client)

2008-11-13 Thread gistolero
Hello, I want to run a (DataImportHandler) full-import with solrj. I understand how to send queries with SolrQuery etc., but I don't know how to construct the "dataimport?command=full-import&commit=true" path. Which classes do I have to use? SolrRequest? It would be very nice if you could post

Re: full-import with solrj (solr Java client)

2008-11-13 Thread gistolero
Erik, thanks a lot for this example. Now, all works fine :-) Original-Nachricht > Datum: Thu, 13 Nov 2008 06:53:36 -0500 > Von: Erik Hatcher <[EMAIL PROTECTED]> > An: solr-user@lucene.apache.org > Betreff: Re: full-import with solrj (solr Java client) > On Nov 13, 2008, at 6:

Using properties from core configuration in data-config.xml

2008-11-17 Thread gistolero
Hello, is it possible to use properties from core configuration in data-config.xml? I want to define the "baseDir" for DataImportHandler. I tried the following configuration: *** solr.xml *** ... *** data-config.xml *** But this is th

Re: Using properties from core configuration in data-config.xml

2008-11-18 Thread gistolero
Very cool :-) Both suggestions work fine! But only with solr version 1.4: https://issues.apache.org/jira/browse/SOLR-823 Use a nightly build (e.g. 2008-11-17 works): http://people.apache.org/builds/lucene/solr/nightly/ See below for examples for both solutions... ((( 1 ))) > There may be one

Combine facet.date and facet.field

2009-03-02 Thread gistolero
Hello, I'm using the facet.date function to get all matching docs per day: q=foo&rows=0&facet=true&facet.date=date&facet.date.start=2009-01-31T00:00:00Z&facet.date.end=2009-03-01T23:59:59Z&facet.date.gap=+1DAY&fq=+size:big 2009-01-31T00:00:00Z -> 13 hits 2009-02-01T00:00:00Z -> 10 hits ... As y

DisMax query parser syntax for the fq parameter

2009-07-09 Thread gistolero
Hello, I am using the dismax query parser syntax for the fq param: .../select?qt=dismax&rows=30&q.alt=*:*&qf=content&fq={!dismax qf=contentKeyword^1.0 mm=0%}Foo&fq=+date:[2009-03-11T00:00:00Z TO 2009-07-09T16:41:50Z]&fl=id,date,content Now, I want to add one more field to the qf parameter: .

Re: DisMax query parser syntax for the fq parameter

2009-07-10 Thread gistolero
Yes, it works :-) Thanks Erik! > > I am using the dismax query parser syntax for the fq param: > > > > .../select?qt=dismax&rows=30&q.alt=*:*&qf=content&fq={!dismax > > qf=contentKeyword^1.0 mm=0%}Foo&fq=+date:[2009-03-11T00:00:00Z TO > > 2009-07-09T16:41:50Z]&fl=id,date,content > > > > > > N