RE: Multiple Search in Solr

2008-02-05 Thread Peter Thygesen
I'm also looking for a solution with multiple indices.

Soo.. great, are you saying the patch doesn't work or what? And could
you elaborate a little more on the "I have written the Lucene
application.." What did you do?


-Peter Thygesen

-Original Message-
From: Jae Joo [mailto:[EMAIL PROTECTED] 
Sent: 4. februar 2008 14:59
To: solr-user@lucene.apache.org
Subject: RE: Multiple Search in Solr

I have downloaded version 1.3 and built multiple indices.

I could not find any way for multiple indices search at Solr level, I
have written the Lucene application. It is working well.

Jae Joo

-Original Message-
From: Niveen Nagy [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 8:55 AM
To: solr-user@lucene.apache.org
Subject: Multiple Search in Solr

Hello ,

 

I have a question concerning solr multiple indices. We have 4 solr
indices in our system and we want to use distributed search (Multiple
search) that searches in the four indices in parallel. We downloaded the
latest code from svn and we applied the patch distributed.patch but we
need more detailed description on how to use this patch and what changes
should be applied to solr schema, and how these indices should be
located. Another question here is could the steps be applied to our
indices that was built using a version before applying the distributed
patch.

 

 Thanks in advance.

   

Best Regards,

 

Niveen Nagy

 




Re: Querying multiple dynamicField

2008-02-05 Thread Renaud Delbru
The idea was to keep separated a certain number of lines (or sentences) 
in a document without using the GapPosition trick between field 
instances. I found that the use of multiple dynamic fields is a cleaner 
and generic approach.
By using the copyField, I duplicate data inside the index but I loose 
also the line distinction.


I think the addition of wildcards in the field name can be a good 
addition to the Solr features. This will give us the ability to query 
only a certain "type" of dynamic field (typeA_*, typeB_*, etc.).


Regards.

Lance Norskog wrote:

You can use the  directive to copy all 'sentence_*' fields into
one indexed field. You then have a named field that you can search against.

Lance Norskog

-Original Message-
From: Renaud Delbru [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 6:48 PM

To: solr-user@lucene.apache.org
Subject: Querying multiple dynamicField

Hi,

We would like to know if there is an efficient way to query multiple
dynamicField at the same time, using wildcard in the field name. For
example, we have a list of dynamic fields "sentence_*" and we would like to
execute a query on all the "sentence_*" fields.
Is there a way to execute such queries on Solr 1.3 / Lucene 2.3 ?

Regards.

--
Renaud Delbru
  



--
Renaud Delbru,
E.C.S., Ph.D. Student,
Semantic Information Systems and
Language Engineering Group (SmILE),
Digital Enterprise Research Institute,
National University of Ireland, Galway.
http://smile.deri.ie/


Re: SpanQuery support

2008-02-05 Thread Renaud Delbru

Very nice, I will try this approach.

Thanks Yonik.

Yonik Seeley wrote:

On Feb 4, 2008 11:53 AM, Yonik Seeley <[EMAIL PROTECTED]> wrote:
  

You could, but that would be the hard way (by a big margin).
There are pluggable query parsers now (see QParserPlugin)... but the
current missing piece is being able to specify a new parser plugin
from solrconfig.xml



Hmmm, it appears I forgot what I implemented already ;-)

Support for adding new parser plugins from solrconfig.xml already
exists (and I just added a test).
So add something like the following to your solrconfig.xml


And then implement FooQParserPlugin in Java to create your desired
query structures (span queries or whatever).  See other
implementations of FooQParserPlugin in Solr for guidance.

To use your "foo" parser, set it to the default query type by adding
defType="foo" to the request (or to the defaults for your handler).
You can also override the current query type via q=my query


-Yonik
  



--
Renaud Delbru,
E.C.S., Ph.D. Student,
Semantic Information Systems and
Language Engineering Group (SmILE),
Digital Enterprise Research Institute,
National University of Ireland, Galway.
http://smile.deri.ie/


Solr search stress testing

2008-02-05 Thread zqzuk

Hi, I d like to do a stress testing of my solr application to see how many
concurrent requests it can handle and how long it takes. But I m not sure if
I have done it in proper way (likely not)... responses seem to be very slow

My configuration:
1 Solr instance, using the default settings distributed in the example code
1.1 million documents indexed
duo core 1.8 GB machine with ram 2GB

My testing approach:
I created 100 Threads, each of which producings exactly same one query to
Solr, and the query should return 7 results. The wait interval bewteen each
thread is 1 second. In other words, every 1 second there is a thread created
issuing same query to solr server.
The time taken to serve 1 request is 2 seconds.

I was expecting that response to first thread take 2 seconds, then much
shorter for the rest, however, it seems results are very random. The last
thread took even 10 seconds to complete.

In another test I created the 100 threads instantaneously and each issuing
the same query instantaneously, and for a while Solr went silent, until
about 15-20 seconds it started to send responses...


I suspect if this is the proper way to do the stress testing? if not may I
have some pointers please? If the test design makes sense, clearly there
must be something I can do to improve performance, may I have some pointers
too please?

Many thanks!
-- 
View this message in context: 
http://www.nabble.com/Solr-search-stress-testing-tp15299687p15299687.html
Sent from the Solr - User mailing list archive at Nabble.com.



strange updating inconsistency

2008-02-05 Thread patrik
I'm working with a reasonably big index with solr-1.2, and have noticed some
odd behavior while updating. The use case is that a document gets indexed
with a status, in this case it's -1 for documents that aren't ready to be
searched yet and 1 otherwise. Initial indexing works perfectly, and getting
a result set of documents with the status of -1 works as well. 

 

Where things get messy is the update post after a document has been deemed
ready for searching. The unique ID in my index is a long called clipId.
Below are two documents that I've posted multiple times to my index. The
first one updates the index, the second does not. Is there something I'm
missing about?

 

patrik

 

 















1











-1







7005

0





1045

1352560412

2



0



 

 















1











-1







7005

0





1045

3391393924

2



0



 

 



Date Range Search

2008-02-05 Thread Gavin
Hi,
Can some one tell me how I can achieve date range searches? For
instance if I save the DOB as a solr date field how can I do a search to
get the people,
1. Who are older than 30 years
2. Who were born in 1975

etc. Greatly appreciate your help.

Thanks,
-- 
Gavin Selvaratnam,
Project Leader

hSenid Mobile Solutions
Phone: +94-11-2446623/4 
Fax: +94-11-2307579 

Web: http://www.hSenidMobile.com 
 
Make it happen

Disclaimer: This email and any files transmitted with it are confidential and 
intended solely for 
the use of the individual or entity to which they are addressed. The content 
and opinions 
contained in this email are not necessarily those of hSenid Software 
International. 
If you have received this email in error please contact the sender.



Re: Date Range Search

2008-02-05 Thread Leonardo Santagada

http://www.nabble.com/date-math-syntax-tc15161881.html#a15170923

On 06/02/2008, at 02:44, Gavin wrote:


Hi,
Can some one tell me how I can achieve date range searches? For
instance if I save the DOB as a solr date field how can I do a  
search to

get the people,
1. Who are older than 30 years
2. Who were born in 1975

etc. Greatly appreciate your help.

Thanks,
--
Gavin Selvaratnam,
Project Leader

hSenid Mobile Solutions
Phone: +94-11-2446623/4
Fax: +94-11-2307579

Web: http://www.hSenidMobile.com

Make it happen

Disclaimer: This email and any files transmitted with it are  
confidential and intended solely for
the use of the individual or entity to which they are addressed. The  
content and opinions
contained in this email are not necessarily those of hSenid Software  
International.

If you have received this email in error please contact the sender.



--
Leonardo Santagada





sorlj search

2008-02-05 Thread Tevfik Kiziloren

Hi. I'm a newbie. I need to develop a jsf based search application by using
solr. I found nothing about soljava imlementation except simple example on
the solr wiki. When I tried a console program that similar in the example at
solr wiki, I got the exception below. Where can i find an extensive
documentation about solrj?

Thanks in advance.
Tevfik Kızılören.

try {
String url = "http://localhost:8080/solr";;
SolrServer server = new CommonsHttpSolrServer(url); 
  
SolrQuery query = new SolrQuery();
query.setQuery("solr");
System.out.println(query.toString());   
QueryResponse rsp = server.query(query);
System.out.println(rsp.getResults().toString());
   
} catch (IOException ex) {
   
Logger.getLogger(SolrclientView.class.getName()).log(Level.SEVERE, null,
ex);
} catch (SolrServerException ex) {
   
Logger.getLogger(SolrclientView.class.getName()).log(Level.SEVERE, null,
ex);
}


---
solrclient.SolrclientView jButton1ActionPerformed
SEVERE: null
org.apache.solr.client.solrj.SolrServerException: Error executing query
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:96)
at
solrclient.SolrclientView.jButton1ActionPerformed(SolrclientView.java:229)
at solrclient.SolrclientView.access$800(SolrclientView.java:32)
at
solrclient.SolrclientView$4.actionPerformed(SolrclientView.java:135)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: org.apache.solr.common.SolrException: parsing error
at
org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:138)
at
org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:99)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:317)
at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:84)
... 29 more
Caused by: java.lang.RuntimeException: this must be known type! not: int
at
org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:217)
at
org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:235)
at
org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:123)
-- 
View this message in context: 
http://www.nabble.com/sorlj-search-tp15305698p15305698.html
Sent from the Solr - User mailing list archive at Nabble.com.