Re: Solr memory usage

2011-12-30 Thread Otis Gospodnetic
Hi Bai, Solr doesn't try to load the whole index into memory, no. You can control how much memory Tomcat uses with -Xmx Java command line parameter.   Otis Performance Monitoring SaaS for Solr - http://sematext.com/spm/solr-performance-monitoring/index.html >___

hl.maxAnalyzedChars seems does not work

2011-12-30 Thread Min Yang
Hi, My situation is that highlight a text field(about 2M per document) costed too much time(>1s). So I want to limit the characters highlighter analyze. These are my highlighting parameters, which seem to have no problem: true text 1 200 text 100 The pa

Re: Best practices for installing and maintaining Solr configuration

2011-12-30 Thread Chris Hostetter
: I've seen several Solr developers mention the fact that people often : copy example/ to become their solr installation and that that is not : recommended. We are rebuilding our search functionality to use Solr and : will be deploying it in a few weeks. do you have specific examples from the

Re: How to test solr filter

2011-12-30 Thread Chris Hostetter
: References: <1324729256338-3610466.p...@n3.nabble.com> : <4ef69412.3040...@r.email.ne.jp> : In-Reply-To: <4ef69412.3040...@r.email.ne.jp> : Subject: How to test solr filter https://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a m

Re: [Solr Event Listener plug-in] Execute query search from SolrCore - Java Code

2011-12-30 Thread Alessandro Benedetti
I have tried to open a new searcher and make a forced commit inside the postCommit method of the listener, but it caused many issues. How can I complete the commit and then call the postCommit method of the listener with the logic inside ( with a lot of queries on the last committed docs)? Cheers

Re: [Solr Event Listener plug-in] Execute query search from SolrCore - Java Code

2011-12-30 Thread Alessandro Benedetti
Ok, I have made progresses, I built my architecture and I execute queries , inside the "PostCommit" method, and they are launched as i want. But The core can't see the early updated documents and the commit ends after than the "postCommit" method has ended!! But i have to see the early updated docu

Re: issues with WordDelimiterFilter

2011-12-30 Thread Chris Hostetter
: I'm having an issue with the way the WordDelimiterFilter parses compound : words. My field declaration is simple, looks like this: : : : : : : you haven't said anything about what your query time analyzer looks like -- based on your other comments, i'

Highlighting with prefix queries and maxBooleanClause

2011-12-30 Thread Michael Lissner
This question has come up a few times, but I've yet to see a good solution. Basically, if I have highlighting turned on and do a query for q=*, I get an error that maxBooleanClauses has been exceeded. Granted, this is a silly query, but a user might do something similar. My expectation is that

Re: Decimal Mapping problem

2011-12-30 Thread Chris Hostetter
: Try to cast MySQL decimal data type to string, i.e. : : CAST( IF(drt.discount IS NULL,'0',(drt.discount/100)) AS CHAR) as discount : (or CAST AS TEXT) ...to clarify here, the values you are seeing are what happens when the DB returns to DIH a value in a type it doesn't udnerstand -- in this c

Re: reposting highlighting questions

2011-12-30 Thread Chris Hostetter
: I am new to solr/xml/xslt, and trying to figure out how to display : search query fields highlighted in html. I can enable the highlighting : in the query, and I think I get the correct xml response back (See : below: I search using 'Contents' and the highlighting is shown with : and . Howe

Re: MLT as a nested query

2011-12-30 Thread Chris Hostetter
: is it possible to use MLT as a nested query? I tried the following: : select?q=field1:foo field2:bar AND _query_:"{!mlt fl=mltField mindf=1 mintf=1 mlt.match.include=false} selectField:baz}" MLT functionality exists in two forms: as a component, that decorates results produced by another

Re: a question on jmx solr exposure

2011-12-30 Thread Chris Hostetter
: > > Well, we don't use multicore feature of SOLR, so in our case SOLR : > instances : > > are just separate web-apps. The web-app loading order probably then : > affects : > > on which app gets hold of a jmx 'pipe'. A feature was added in SOLR-1843 specificly to help address this potential col

RE: Solr, SQL Server's LIKE

2011-12-30 Thread Devon Baumgarten
Hoss, Thanks. You've answered my question. To clarify, what I should have asked for instead of 'exact' was 'not fuzzy'. For some reason it didn't occur to me that I didn't need n-grams to use the wildcard. You asking for me to clarify what I meant made me realize that the n-grams are the source

Re: Getting results in (reverse) order they were indexed

2011-12-30 Thread Chris Hostetter
: Is there any possible way to get the results back from Solr in the reverse : order they were indexed (i.e. the documents that was most recently added : should be the first in the result) : : I know I can add a indexedAt=NOW field of type date and sort on it in desc : order. : : But if I have

Re: 3.5 QueryResponseWriter

2011-12-30 Thread Chris Hostetter
: Well, what I did was to create a lib directory within $SOLR_HOME ( : $SOLR_HOME/lib ), and that is where I put the VRM jar found in the dist : folder. Then what I did to the solrconfig was basicly to uncomment all of the : statements and use . The solrconfig is placed as : normal in $SOLR_HOME

Re: NoClassDefFoundError: org/apache/solr/common/params/SolrParams

2011-12-30 Thread Bruno Adam Osiek
Thanks. I'm still working on this issue with no success so far. I'm reinstalling right now my whole development environment, for I have probably messed with it while attempting to find the reason for this error message. Bruno On 12/29/2011 08:27 PM, Dyer, James wrote: The SolrParams class

Solr memory usage

2011-12-30 Thread Bai Shen
I have solr running on a single machine with 8GB of ram. Right now I have about 1.5 million documents indexed, which had produced a 30GB index. When I look in top, the tomcat process which is hosting solr says that it's using 38GB of VIRT, 6.6G RES, and 2GB SHR. The machine is showing a complete

RE: Best practices for installing and maintaining Solr configuration

2011-12-30 Thread Brandon Ramirez
I actually have read that and I have Solr up and running on Tomcat. I didn't realize that it was example/ including Jetty, etc. that was being recommended against, but the $SOLR_HOME, which I created by copying example/solr/ Thanks for the tips on upgrading. I'll keep that in our documentation

RE: Solr, SQL Server's LIKE

2011-12-30 Thread Chantal Ackermann
The problem with the wildcard searches is that the input is not analyzed. For english, this might not be such a problem (except if you expect case insenstive search). But than again, you don't get that with like, either. Ngrams bring that and more. What I think is often forgotten when comparing '

Re: Search Query (Should I use fq)

2011-12-30 Thread reeuv
Thanks for your help iorixxx . If you can help me solve one of my other questions as well that would be great http://lucene.472066.n3.nabble.com/Getting-results-in-reverse-order-they-were-indexed-td3620577.html http://lucene.472066.n3.nabble.com/Getting-results-in-reverse-order-they-were-indexed-

Getting results in (reverse) order they were indexed

2011-12-30 Thread reeuv
Is there any possible way to get the results back from Solr in the reverse order they were indexed (i.e. the documents that was most recently added should be the first in the result) I know I can add a indexedAt=NOW field of type date and sort on it in desc order. But if I have a paginated web a

Re: 3.5 QueryResponseWriter

2011-12-30 Thread Aleksander Akerø
Den 30.12.2011 06:03, skrev Chris Hostetter: : Looks like you've experienced the issue described with fixes here: : but specifically, since you've already copied the jar file in question, and are now getting a class not found for

Re: Search Query (Should I use fq)

2011-12-30 Thread Ahmet Arslan
> I am looking to write a query in > which a user will enter two conditions i.e. >                 >   Search for description: where > category: > > So whats the best way to query it > > 1. q = (description:text) AND (category:someCategory) > > or > > 2. q = (description:text) AND (fq=category

Search Query (Should I use fq)

2011-12-30 Thread reeuv
I am looking to write a query in which a user will enter two conditions i.e. Search for description: where category: So whats the best way to query it 1. q = (description:text) AND (category:someCategory) or 2. q = (description:text) AND (fq=category:someCategory) or Is ther