Re: Does defType overrides other settings for default request handler

2012-07-24 Thread amitesh116
Thanks for your reply. It worked for me. For now, I am using it in query string only. But planning to move it to solrconfig. Thanks again! ~Amitesh -- View this message in context:

Re: NumberFormatException while indexing TextField with LengthFilter and then copying to tfloat

2012-07-24 Thread Chantal Ackermann
Hi Hoss, thank you for the quick response and the explanations! My suggestion would be to modify the XPath expression you are using to pull data out of your original XML files and ignore estimated_hours/ I don't think this is possible. That would include text() in the XPath which is not

Re: [Announce] Solr 4.0-ALPHA with RankingAlgorithm 1.4.4 with Realtime NRT available for download

2012-07-24 Thread Nagendra Nagarajayya
Hi Yonik: Please see my comments below: On 7/23/2012 8:52 AM, Yonik Seeley wrote: On Mon, Jul 23, 2012 at 11:37 AM, Nagendra Nagarajayya nnagaraja...@transaxtions.com wrote: Realtime NRT algorithm enables NRT functionality in Solr by not closing the Searcher object and so is very fast. I am

Re: [Announce] Solr 4.0-ALPHA with RankingAlgorithm 1.4.4 with Realtime NRT available for download

2012-07-24 Thread Yonik Seeley
On Tue, Jul 24, 2012 at 8:24 AM, Nagendra Nagarajayya nnagaraja...@transaxtions.com wrote: SolrIndexSearcher is a heavy object with caches, etc. As I've said, the caches are configurable, and it's trivial to disable all caching (to the point where the cache objects are not even created). The

Re: [Announce] Solr 4.0-ALPHA with RankingAlgorithm 1.4.4 with Realtime NRT available for download

2012-07-24 Thread Nagendra Nagarajayya
Thanks Mark! I am already working with Apache Software Foundation on the mark and am using the correct usage of the mark as suggested by them. Regards, Nagendra Nagarajayya http://solr-ra.tgels.org http://rankingalgorithm.tgels.org On 7/23/2012 12:15 PM, Mark Miller wrote: On Jul 23, 2012,

Upgrade solr 1.4.1 to 3.6

2012-07-24 Thread alexander81
Hi, after this upgrade I need to see if the cache has to be rebuilt or not. regards -- View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-solr-1-4-1-to-3-6-tp3996952.html Sent from the Solr - User mailing list archive at Nabble.com.

problem using lat longfield

2012-07-24 Thread yair even-zohar
I'm using solr 3.5 via SIREn I modified the schema.xml by adding:  fields     field name=coordinate type=LatLonType indexed=true stored=false multiValued=false/  /fields My code is the following: SolrInputDocument document = new SolrInputDocument(); SolrInputField inputField = new

Re: Upgrade solr 1.4.1 to 3.6

2012-07-24 Thread Michael Della Bitta
Hello Alexander, The cache gets dumped when you restart for the upgrade. Do you mean the index? Michael Della Bitta Appinions, Inc. -- Where Influence Isn’t a Game. http://www.appinions.com On Tue, Jul 24, 2012 at 7:43 AM, alexander81

SOLR 4.0-ALPHA : DIH : Indexed and Committed Successfully but Index is empty

2012-07-24 Thread Chantal Ackermann
Hi there, sorry for the length - it is mostly (really) log output. The basic issue is reflected in the subject: DIH runs fine, but even with an extra optimize on top (which should not be necessary given my DIH config) the index remains empty. (I have changed from 3.6.1 to 4.0-ALPHA because of

Re: What API can I use to partially update a field in Solr 4.0

2012-07-24 Thread Alexandre Rafalovitch
I asked that question just a couple of days ago. Check archive for full conversation on July 14-16th. In summary, what you want is only possible if all (ALL!) fields are stored (not just indexed). And you may want to look at: https://issues.apache.org/jira/browse/SOLR-139 Regards, Alex.

geospacial / coordinates java example anyone?

2012-07-24 Thread yair even-zohar
Can someone please send a simple java example for indexing and querying a latitude, longitude coordinate on SolrDocument. That is, assume we have a document and we want to simply add the lat,lon as field to the document and then query according to distance too Thanks -Yair   

Re: geospacial / coordinates java example anyone?

2012-07-24 Thread Hasan Diwan
On 24 July 2012 09:55, yair even-zohar yair...@yahoo.com wrote: Can someone please send a simple java example for indexing and querying a latitude, longitude coordinate on SolrDocument. That is, assume we have a document and we want to simply add the lat,lon as field to the document and then

Re: geospacial / coordinates java example anyone?

2012-07-24 Thread Ram Marpaka
Yair  1. In case if you have not seen this, you can download and play with the example  http://www.ibm.com/developerworks/opensource/library/j-spatial/  2. Download solr-example.tgz from below which has input xml files, index using DIH {It doesnt use solrj  but I think you will get some

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread Chris Hostetter
: I removed distro pacakged Tomcat from the eqaation, ... : replacing it with an upstream instance ... : Repeating the process, at attempt to 'start' the /solr webapp, there's : no change. I still get ... : java.lang.IllegalArgumentException: Invalid or unreadable

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread k9157
Hi, On Tue, Jul 24, 2012, at 10:50 AM, Chris Hostetter wrote: : I removed distro pacakged Tomcat from the eqaation, ... : replacing it with an upstream instance ... : Repeating the process, at attempt to 'start' the /solr webapp, there's : no change. I still get ... :

Re: Query for records that have more than N values in a multi-valued field

2012-07-24 Thread Chris Hostetter
: I have a multivalued field and I want to find records that have (for : example) at least 3 values in that list. Is there an easy way to do : it? Typically this is solved by adding another field that contains the count -- I thought i had already written an update processor in Solr 4.0.0-ALPHA

filed type for text search

2012-07-24 Thread Xiao Li
I have used Solr 3.4 for a long time. Recently, when I upgrade to Solr 4.0 and reindex the whole data, I find that the fields which are specified as string type can not be searched by q parameter. If I just change the type to text_general, it works. So my question is for Solr 4.0, must I set the

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread Chris Hostetter
: I just used the following steps (basically the same as yours just : different paths) and got solr running in tomcat 7.0.29 with no : problems : : Well, *and* using a different version of solr ... Whoops ... sorry, somehow i totally missed that. I just tried again with Solr 3.6.1 and

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread Chris Hostetter
: Whoops ... sorry, somehow i totally missed that. I just tried again with : Solr 3.6.1 and everything still worked fine... BTW: I ran all these steps on Solr 3.6.1 using both... java version 1.6.0_24 OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1) OpenJDK 64-Bit

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread k9157
On Tue, Jul 24, 2012, at 11:43 AM, Chris Hostetter wrote: : Whoops ... sorry, somehow i totally missed that. I just tried again with Solr 3.6.1 and everything still worked fine... BTW: I ran all these steps on Solr 3.6.1 using both... java version 1.6.0_24 OpenJDK Runtime Environment

Re: Invalid or unreadable WAR file : .../solr.war when starting solr 3.6.1 app on Tomcat 7 (upgrade to 7.0.29/upstream)?

2012-07-24 Thread Chris Hostetter
: I'm suspicious now, of an Opensuse-ism. Maybe lingering pkg pollution : of the java stack on this box. I would be more suspicious of lingering pkg pollution in tomcat ... i'm assuming you already tried the solr tutorial using the provided jetty first ... right? if that works it's

Re: Redirecting SolrQueryRequests to another core with Handler

2012-07-24 Thread Chris Hostetter
: Managed to do this in the end by reconstructing a new SolrQueryRequest : with a SolrRequestParsers (method buildRequestFrom()) and then calling : core.execute(); : Took some fiddling but seems to be working now! :) FWIW, i think the simplest way to do something like this would be...

Re: [Announce] Solr 4.0-ALPHA with RankingAlgorithm 1.4.4 with Realtime NRT available for download

2012-07-24 Thread Andy
Nagendra, Does RankingAlgorithm work with faceting which requires the use of cache? As new documents are added or updated, the cache will be constantly invalidated. So how would RankingAlgorithm work in this case? From: Nagendra Nagarajayya

Copy lucene index into Solr

2012-07-24 Thread spredd1208
Is there a best practice to copy a lucene index which is built using the core API of Lucene 3.6 into a solr server (also 3.6) and then have it work? I cannot find a mapping anywhere of lucene fields to solr fields and what the corresponding schema.xml would look like. This seems like something

Re: SOLR 4.0-ALPHA : DIH : Indexed and Committed Successfully but Index is empty

2012-07-24 Thread Chris Hostetter
: str name=update.chainemptyFieldChain/str ... : str name=Total Rows Fetched294/str ... : When running the DIH full import, the log output is: ... : I'm a bit confused that it does not output the commit logs but it didn't : do that before, neither, if I remember

Re: Copy lucene index into Solr

2012-07-24 Thread Upayavira
Solr places constraints upon what you can do with your lucene index (e.g. You must conform to a schema). If your Lucene index cannot be mapped to a schema, then it cannot be used within Solr. Upayavira On Tue, Jul 24, 2012, at 11:05 PM, spredd1208 wrote: Is there a best practice to copy a

SOLR - Query - Filtering on grouped result

2012-07-24 Thread SARKAR, Subrata
Hi, Is there a way to make a SOLR query which will filter the result returned by the group. I am having the following three document in SOLR, and I want to pick up the latest document based on RqDate which is associated with OrganizationIdRef:154. So I wrote my query to group the results by

Re: Copy lucene index into Solr

2012-07-24 Thread spredd1208
So on the lucene side I am only using: http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/document/Field.html#Field(java.lang.String, java.lang.String, org.apache.lucene.document.Field.Store, org.apache.lucene.document.Field.Index) and

Re: PathHierarchyTokenizerFactory behavior

2012-07-24 Thread Chris Hostetter
: Modifying the field definition to Alok: thanks for reporting this. I've opend an issue to improve hte example and the docs... https://issues.apache.org/jira/browse/SOLR-3674 -Hoss

Re: Copy lucene index into Solr

2012-07-24 Thread Lance Norskog
It will be easier to understand these if you make an index in Solr and examine it with the Luke program. Build Solr, cd solr/example java -jar start.jar in another window cd solr/exampledocs sh post.sh *.xml Now use Luke on the index in solr/example/solr/collection1/data/index You will see what