Empty query

2008-08-31 Thread anshuljohri

Hi,

Is there any way to get empty result set if empty query is passed to solr.
Am using solr 1.2 and dismax request handler.

Thanks,
Anshul Johri
-- 
View this message in context: 
http://www.nabble.com/Empty-query-tp19243534p19243534.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: SolrJ - SolrServer#commit() doesn't return

2008-08-31 Thread Machisuji

Yes I have. In the server logs there are no warnings or errors.

I've made a screenshot of the server log before the "hang up".

http://www.nabble.com/file/p19243660/lastLog_2.png lastLog_2.png 




Otis Gospodnetic wrote:
> 
> Hm, it's hard to tell from here. Have you checked various logs for
> "Exception", "ERROR", and such?
> 
> 
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> - Original Message 
>> From: Machisuji <[EMAIL PROTECTED]>
>> To: solr-user@lucene.apache.org
>> Sent: Tuesday, August 26, 2008 8:46:24 AM
>> Subject: SolrJ - SolrServer#commit() doesn't return
>> 
>> 
>> Hey.
>> 
>> I've been working with SolR for a few days now and as long as I haven't
>> worked with
>> too much data everything was alright.
>> 
>> However, now that I wanted to index really all data, I've got problems
>> with
>> SolrJ
>> not returning from a call to CommonHttpSolrServers's commit().
>> I try to upload data from online shops, to be more precise name,
>> category,
>> price and description of tens of millions of items.
>> After a few million items the call of commit() doesn't return anymore and
>> simply does nothing.
>> At least the cpu usage on the computer running the solr server falls to
>> 0%.
>> 
>> I always add 10,000 items at a time by calling
>> SolrServer#add(Collection) followed by
>> SolrServer.commit().
>> Has someone an idea what could be the problem here?
>> -- 
>> View this message in context: 
>> http://www.nabble.com/SolrJ---SolrServer-commit%28%29-doesn%27t-return-tp19161293p19161293.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SolrJ---SolrServer-commit%28%29-doesn%27t-return-tp19161293p19243660.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Empty query

2008-08-31 Thread Chris Hostetter

: Is there any way to get empty result set if empty query is passed to solr.
: Am using solr 1.2 and dismax request handler.

if an empty query is sent to dismax, it uses the q.alt param ... so you 
should just be able to set q.alt to something that won't match any docs 
(pick a field:value where the field doesn't even exist in your index)


-Hoss



Best way to tell which Lucene revision a Solr build comes with?

2008-08-31 Thread Chris Harris
I'm getting to the point where building Solr involves:

1. Figuring out which Lucene revision the Solr build I downloaded was
built against
2. Downloading/patching/building that revision of Lucene
3. Copying over the new Lucene jars into Solr's lib directory
4. Building Solr

What's the best way to do #1? Currently all I've figured out is
starting up Solr, and looking at the release info displayed on the
administration jsp pages. There must be a way to do it before you
compile Solr, though, right?

Also, are there any tricks to doing #3 correctly? It *looks*
straightforward (just stuff from copy lucene/build and
lucene/build/contrib into solr/lib).

Thanks,
Chris


Re: Best way to tell which Lucene revision a Solr build comes with?

2008-08-31 Thread Chris Harris
Huh, looks like looking at the Solr admin doesn't always help. I just
did a "ant compile; ant example" on Solr r690361, and when I now "java
-jar example.jar" and go to
http://localhost:8983/solr/admin/registry.jsp, my Lucene version info
is as follows:

Lucene Specification Version: 2008-08-27_02-04-10
Lucene Implementation Version: 2008-08-27_02-04-10 ${svnversion} -
2008-08-27 02:13:53

I feel like I've previously seen ${svnversion} expanded into a
concrete number on this page.

On Sun, Aug 31, 2008 at 2:54 PM, Chris Harris <[EMAIL PROTECTED]> wrote:
> I'm getting to the point where building Solr involves:
>
> 1. Figuring out which Lucene revision the Solr build I downloaded was
> built against
> 2. Downloading/patching/building that revision of Lucene
> 3. Copying over the new Lucene jars into Solr's lib directory
> 4. Building Solr
>
> What's the best way to do #1? Currently all I've figured out is
> starting up Solr, and looking at the release info displayed on the
> administration jsp pages. There must be a way to do it before you
> compile Solr, though, right?


Re: distributed search mechanism

2008-08-31 Thread Chris Hostetter

: This is typically the kind of description I need, but I wonder if the 
: one cited above is still valid (since it was apparently written quite a 
: time before final commit).
: Assuming it is, what's then the difference between the STEPS mentioned 
" and the STAGES later introduced (STAGE_START, STAGE_PARSE_QUERY, etc...) ?

I don't have any answers to your questions, but i would like to suggest 
that whoever does have hte answers (hem: Yonik?) update 
"DistributedSearchDesign" to reflect reality (i think it was orriginally 
just some brainstorming notes) and link to it from "DistributedSearch" ...

http://wiki.apache.org/solr/DistributedSearch
http://wiki.apache.org/solr/DistributedSearchDesign




-Hoss



Index partioning

2008-08-31 Thread sanraj25

Hi 
  I read the doument on  http://wiki.apache.org/solr/IndexPartitioning   
Now i want partition  my solr index into two. Based on that document I
changed solrconfig.xml. But I  can't visible  any partitioned folder other
than default one. I need help on index partitioning.give some suggestion to
this.
Thanks in advance

-Santhanaraj

-- 
View this message in context: 
http://www.nabble.com/Index-partioning-tp19249441p19249441.html
Sent from the Solr - User mailing list archive at Nabble.com.