Re: *:* not returning any documents

2011-08-06 Thread Sowmya V.B.
Oh, yeah. That was the only thing I did! to make dismax default, instead of using defType=dismax, as I used to do! Thanks for the clarification. Sowmya. On Fri, Aug 5, 2011 at 10:15 PM, Rafal Piekarski ravba...@gmail.com wrote: Check that you have used lucene query parser, not dismax or

Re: highlight on prefix query

2011-08-06 Thread Kissue Kissue
I think this is correct behaviour. If you go to google and search for Tel, you will see that telephone is highlighted. On Fri, Aug 5, 2011 at 5:42 PM, Ahmed Boubaker abdeka.boubake...@gmail.comwrote: Hi, I am using solr 3 and highlighting is working fine. However when using prefix query

Same id on two shards

2011-08-06 Thread Pooja Verlani
Hi, We have a multicore solr with 6 cores. We merge the results using shards parameter or distrib handler. I have a problem, I might post one document on one of the cores and then post it after some days on another core, as I have a time-sliced multicore setup! The question is if I retrieve a

DIH on sequence (or any type that supports ordering) possible?

2011-08-06 Thread eks dev
I would appreciate some clarifications about DIH I do not have reliable timestamp, but I do have atomic sequence that only grows on inserts/changes. You can understand it as a timestamp on some funky timezone not related to wall clock time, it is integer type. Is DIH keeping track of the

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
Le 6 août 2011 à 02:09, Yonik Seeley a écrit : On Fri, Aug 5, 2011 at 7:30 PM, Paul Libbrecht p...@hoplahup.net wrote: my solr is coming to slowly reach its memory limits (8Gb) and the stats displays me a reasonable fieldCache (1800) but 4820 searchers. That sounds a bit much to me, each

Re: 4820 searchers opened?

2011-08-06 Thread Yonik Seeley
On Sat, Aug 6, 2011 at 11:31 AM, Paul Libbrecht p...@hoplahup.net wrote: Le 6 août 2011 à 02:09, Yonik Seeley a écrit : On Fri, Aug 5, 2011 at 7:30 PM, Paul Libbrecht p...@hoplahup.net wrote: my solr is coming to slowly reach its memory limits (8Gb) and the stats displays me a reasonable

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
Le 6 août 2011 à 17:37, Yonik Seeley a écrit : I have a custom query-handler and a custom response writer. Do you always retrieve the searcher via SolrQueryRequest.getSearcher()? If so, there should be no problem... but if you call SolrCore.getSearcher(), that is where leaks can happen if

Re: 4820 searchers opened?

2011-08-06 Thread Yonik Seeley
On Sat, Aug 6, 2011 at 1:35 PM, Paul Libbrecht p...@hoplahup.net wrote: Le 6 août 2011 à 17:37, Yonik Seeley a écrit : I have a custom query-handler and a custom response writer. Do you always retrieve the searcher via SolrQueryRequest.getSearcher()?  If so, there should be no problem...

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
Le 6 août 2011 à 19:52, Yonik Seeley a écrit : I've been using the following: rb.req.getCore().getSearcher().get().getReader() Bingo! Code should never do core.getSearcher().get() since core.getSearcher returns a reference that must be decremented when you are done. Using

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
This is convincing me... I'd like to experiment and close. So, how can I be sure this is the right thing? I would have thought adding a document and committing would have created a Searcher in my current usage but I do not see the reference list actually being enlarged on my development

Re: 4820 searchers opened?

2011-08-06 Thread Yonik Seeley
On Sat, Aug 6, 2011 at 2:17 PM, Paul Libbrecht p...@hoplahup.net wrote: This is convincing me... I'd like to experiment and close. So, how can I be sure this is the right thing? I would have thought adding a document and committing would have created a Searcher in my current usage but I do

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
Le 6 août 2011 à 20:21, Yonik Seeley a écrit : It is creating a new searcher, but then closing the old searcher after all currently running requests are done using it (that's what the reference counting is for). After the searcher is closed, it's removed from the list. Not if using:

Re: DIH on sequence (or any type that supports ordering) possible?

2011-08-06 Thread Shawn Heisey
On 8/6/2011 8:49 AM, eks dev wrote: I would appreciate some clarifications about DIH I do not have reliable timestamp, but I do have atomic sequence that only grows on inserts/changes. I use DIH, but I don't use the built-in timestamp facility at all. I have an autoincrement field in a

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
PS: why is RefCounted not using SoftReference?? I think I would not see my bug then.

Re: DIH on sequence (or any type that supports ordering) possible?

2011-08-06 Thread eks dev
Thanks Shawn, nice! I didn't notice you can pass more params all the way to sql. So you really do not care about DIH incremental facility, you use it just as vehicle to provide - SQL import - transactional commit to solr on updates... But keeping DB/solr n sync is externalized (I am trying to

Re: 4820 searchers opened?

2011-08-06 Thread Yonik Seeley
On Sat, Aug 6, 2011 at 2:30 PM, Paul Libbrecht p...@hoplahup.net wrote: Le 6 août 2011 à 20:21, Yonik Seeley a écrit : It is creating a new searcher, but then closing the old searcher after all currently running requests are done using it (that's what the reference counting is for). After

Re: 4820 searchers opened?

2011-08-06 Thread Paul Libbrecht
Le 7 août 2011 à 01:10, Yonik Seeley a écrit : Oh, I see... you want to re-create the bug so you can see when it is fixed? To trigger the bug, you need to hit a code path that uses the getCore().getSearcher().get() code. So first send a request that hits that buggy code, then add a doc and

getting result count only

2011-08-06 Thread Jason Toy
How can I run a query to get the result count only? I only need the count and so I dont need solr to send me all the results back.

Re: getting result count only

2011-08-06 Thread Bill Bell
q=*:*rows=0 On 8/6/11 8:24 PM, Jason Toy jason...@gmail.com wrote: How can I run a query to get the result count only? I only need the count and so I dont need solr to send me all the results back.