error in solr.add(docs);

2012-07-12 Thread Sachin Aggarwal
error faced on line solrCore.add(docs); Exception in thread main java.lang.NoSuchMethodError: org.apache.solr.common.params.SolrParams.wrapDefaults(Lorg/apache/solr/common/params/SolrParams;Lorg/apache/solr/common/params/SolrParams;)Lorg/apache/solr/common/params/SolrParams; at

Re: error in solr.add(docs);

2012-07-12 Thread Sachin Aggarwal
i found it error was appearing because i included a a lib file solr-common-1.3.0.jar On Thu, Jul 12, 2012 at 1:34 PM, Sachin Aggarwal different.sac...@gmail.com wrote: error faced on line solrCore.add(docs); Exception in thread main java.lang.NoSuchMethodError:

Re: Problems with elevation component configuration

2012-07-12 Thread igors
Hi, Thanks Chris, but actually, it turns out that query text from elevate.xml has to match the query (q=...). So in this case, elevation works only for http://localhost:8080/solr/elevate?q=brain, but not for http://localhost:8080/solr/elevate?q=indexingabstract:brain type of queries. This could

Re: DataImport using last_indexed_id or getting max(id) quickly

2012-07-12 Thread karsten-solr
Hi Avenka, you asked for a HowTo to add a field inverseID which allows to calculate max(id) from its first term: If you do not use solr you have to calculate 1 - id and store it in an extra field inverseID. If you fill solr with your own code, add a TrieLongField inverseID and fill

NRT and multi-value facet - what is Solr's limit?

2012-07-12 Thread Andy
Hi, I understand that the cache for multi-value facet is multi-segment. So every time a document is updated the entire cache needs to be rebuilt. Is there any rule of thumb on the highest update rate NRT can handle before this cache-rebuild-on-each-commit becomes too expensive? I know it

Re: shard connection timeout

2012-07-12 Thread Michael Della Bitta
Hi, Jason, That's a huge heap. Which Directory implementation are you using? It might make more sense to drastically reduce that heap and let the OS buffer the index at a lower level. Michael Della Bitta Appinions, Inc. -- Where Influence Isn’t a

Re: NRT and multi-value facet - what is Solr's limit?

2012-07-12 Thread karsten-solr
Hi Andy, as long as the cache for facetting is not per segment there is no NRT together with facetting. This is what Jason told you in http://lucene.472066.n3.nabble.com/Nrt-and-caching-td3993612.html and I am agree. Possible you could use multicore. Beste regards Karsten

Re: query syntax to find ??? chars

2012-07-12 Thread Alexander Aristov
don't know why but doesn't work. :( Best Regards Alexander Aristov On 11 July 2012 23:54, Yury Kats yuryk...@yahoo.com wrote: On 7/11/2012 2:55 PM, Alexander Aristov wrote: content:?? doesn't work :) I would try escaping them: content:\?\?\?\?\?\?

multiValued false-true

2012-07-12 Thread Yury Kats
I have an indexed, not stored, not multiValued field in the schema. If I change this field to be multiValued, would I need to re-index everything, or would all existing documents (that were indexed while the field was not multiValued) still be queryable? Thanks, Yury

Re: query syntax to find ??? chars

2012-07-12 Thread Michael Della Bitta
Perhaps they're being displayed as question marks, but the actual character is different? Michael Della Bitta Appinions, Inc. -- Where Influence Isn’t a Game. http://www.appinions.com On Thu, Jul 12, 2012 at 9:30 AM, Alexander Aristov

Re: Nrt and caching

2012-07-12 Thread karsten-solr
Hi Andy, Multi-value faceting is a special case of taxonomy. So it is covered by the org.apache.lucene.facet package (lucene/facet). This is not per segment but works without per IndexSearcher cache. So imho the taxonomy faceting will work with NRT. Because of the new TermsEnum#ord() Method

Re: Trunk error in Tomcat

2012-07-12 Thread Vadim Kisselmann
it works, with a few changes :) I think we don't need a new issue in jura. Solr 4.0 is no longer Solr 4.0 since late february. There were some changes in solrconfig.xml in this time. I migrate my solr 4.0 trunk-config, which works till late february in a new config from 4.0 alpha. A couple of

Re: Updating documents

2012-07-12 Thread Erick Erickson
Vinicius: No, fetching the document from the index, changing selected values and re-indexing probably won't work at all. The problem is that you only get _stored_ values back from Solr. So unless you've specified 'stored=true ' for all your fields, you can't use the doc fetched from Solr to

Re: Sort by date field = outofmemory?

2012-07-12 Thread Erick Erickson
Bruno: You can also reduce your memory requirements by storing fewer unique values. All the _unique_ values for a field in the index are read in for sorting. People often store timestamps in milliseconds, which essentially means that every document has a unique value. Storing your timestamps in

Re: Solr facet multiple constraint

2012-07-12 Thread Erick Erickson
Sure, you can have as complex an FQ clause as you need. Best Erick On Thu, Jul 12, 2012 at 1:48 AM, davidbougearel david.bougea...@smile-benelux.com wrote: Ok this is the id but in fact (sorry about this) my wish is the reverse, i want to get just the facet for which a have the right so i want

Re: query syntax to find ??? chars

2012-07-12 Thread Gora Mohanty
On 12 July 2012 19:28, Michael Della Bitta michael.della.bi...@appinions.com wrote: Perhaps they're being displayed as question marks, but the actual character is different? This is very likely to be the case, as messing up the encoding can leave one with entirely unexpected characters. The '?'

Re: Updating documents

2012-07-12 Thread Jonatan Fournier
Erick, On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson erickerick...@gmail.com wrote: Vinicius: No, fetching the document from the index, changing selected values and re-indexing probably won't work at all. The problem is that you only get _stored_ values back from Solr. So unless you've

Re: Updating documents

2012-07-12 Thread Yonik Seeley
On Thu, Jul 12, 2012 at 12:38 PM, Jonatan Fournier jonatan.fourn...@gmail.com wrote: On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson The partial documents update that Jonatan references also requires that all the fields be stored. If my only fields with stored=false are copyField (e.g. I

Re: multiValued false-true

2012-07-12 Thread Chris Hostetter
: I have an indexed, not stored, not multiValued field in the schema. : : If I change this field to be multiValued, would I need to re-index : everything, or would all existing documents (that were indexed while : the field was not multiValued) still be queryable? usually a change like this is

Case-insensitive on facet prefix

2012-07-12 Thread Nestor Oviedo
Hello all. I have a field configured with the LowerCaseFilterFactory as the only analyzer (for botth indexing and searching). The problem is that facet.prefix doesn't work on that field as expected. For example: Indexed term: house -- LowerCaseFilterFactory applied facet.prefix=hou -- returns a

Re: Updating documents

2012-07-12 Thread Jonatan Fournier
Yonik, On Thu, Jul 12, 2012 at 12:52 PM, Yonik Seeley yo...@lucidimagination.com wrote: On Thu, Jul 12, 2012 at 12:38 PM, Jonatan Fournier jonatan.fourn...@gmail.com wrote: On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson The partial documents update that Jonatan references also requires

Solr custom XSLT with highlighting

2012-07-12 Thread sachin.kale
I have created the following sample xslt which highlights the keyword in the content field for anybody who wants to use it. 1) In your solrconfig.xml requestHandler name=/select class=solr.SearchHandler lst name=defaults ... Add following params to this defaults section str

Re: Problems with elevation component configuration

2012-07-12 Thread Chris Hostetter
: Thanks Chris, but actually, it turns out that query text from elevate.xml : has to match the query (q=...). So in this case, elevation works only for : http://localhost:8080/solr/elevate?q=brain, but not for : http://localhost:8080/solr/elevate?q=indexingabstract:brain type of queries. right

Re: Solr ids query parameter

2012-07-12 Thread Michael Della Bitta
I'm pretty sure a sharded query/response gets tagged in a special way that might be incompatible with multiple tiers like this. Had you considered a single tier that consisted of a load-balanced pool of 'aggregator' servers? Michael Della Bitta

Re: Solr ids query parameter

2012-07-12 Thread Peter Markey
well it's an interesting solution but my use case is such that any of the daily servers could hold the data for a query and hence i need an aggregator to sum up the results. The only issue is, an aggregator could sum up only certain number (I heard around 200) of cores. Hence I would need to

Re: query syntax to find ??? chars

2012-07-12 Thread Jack Krupansky
When you put a backslash in a Java string you need to escape it with another backslash: content:\\?\\?\\?\\?\\?\\? -- Jack Krupansky -Original Message- From: Alexander Aristov Sent: Thursday, July 12, 2012 8:30 AM To: solr-user@lucene.apache.org Subject: Re: query syntax to find ???

question on joins related to noSQL

2012-07-12 Thread Dean Hiller
I currently have this example test case working against lucene RAMDirectory. very simple test case... https://github.com/deanhiller/nosqlORM/blob/memoryindexer/input/javasrc/com/alvazan/test/TestIndexAndOrParens.java with this Entity and his namedQueries

Index version on slave incrementing to higher than master

2012-07-12 Thread Andrew Davidoff
Hi, I am running solr 1.4.0+ds1-1ubuntu1. I have a master server that has a number of solr instances running on it (150 or so), and nightly most of them have documents written to them. The script that does these writes (adds) does a commit and an optimize on the indexes when it's entirely

Re: Updating documents

2012-07-12 Thread Yonik Seeley
On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier jonatan.fourn...@gmail.com wrote: Is there a flag for: if document does not exist, create it for me? Not currently, but it certainly makes sense. The implementation should be easy. The most difficult part is figuring out the best syntax to

Re: Solr facet multiple constraint

2012-07-12 Thread davidbougearel
Ok well i know about the complexity that i can put into fq with AND and OR conditions but at the moment when i put fq=user:10,facet.field=user, the query returns me all the facets not taking into account the fq=user:10 that's the problem. -- View this message in context:

Email keeps bouncing

2012-07-12 Thread Andy
Whenever I reply to an email to this list I got a failure notice (please see below) What can I do? Sorry, we were unable to deliver your message to the following address. solr-user@lucene.apache.org: Remote host said: 552 spam score (6.0) exceeded threshold