Re: How to iterate the solrdocumentlist result

2009-05-04 Thread Avlesh Singh
SolrDocumentList extends an ArrayList. You can iterate on it the way you would do on a list. Here's an example for(SolrDocument doc : listingSearchResponse.getResults()){ System.out.print(doc.getFieldValue(yourFieldName)); } Cheers Avlesh On Mon, May 4, 2009 at 10:36 AM, ahmed baseet

org.apache.*.*.... class not found exception in Internet Explorer

2009-05-04 Thread ahmed baseet
Hi, I'm trying to query solr indexer thru a web page and trying to display the result. I've the following class to query solr [I'm using the query(string) method], import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.SolrDocument; import java.util.Map; import

Re: org.apache.*.*.... class not found exception in Internet Explorer

2009-05-04 Thread ahmed baseet
Missed some information. I'm working on Windows XP and my class path is this, .;E:\Program Files\Java\jdk1.6.0_05\bin;D:\firefox download\apache-solr-1.3.0\apache-solr-1.3.0\dist\solrj-lib\commons-httpclient-3.1.jar;D:\firefox

Re: Last modified time for cores, taking into account uncommitted changes

2009-05-04 Thread Andrey Klochkov
Hi, I use SolrIndexReader.isCurrent() for this purpose On Fri, May 1, 2009 at 1:42 AM, James Brady james.colin.br...@gmail.comwrote: Hi, The lastModified field the Solr status seems to only be updated when a commit/optimize operation takes place. Is there any way to determine when a core

Re: Update an existing Solr Index

2009-05-04 Thread ahmed baseet
As I know when you resend another index request with some old ID, old field but new content, the old one gets overwritten by the new one. @solr-users, Views??? --Ahmed On Mon, May 4, 2009 at 5:26 PM, appleman1982 prasad.jug...@gmail.comwrote: Hi All, I have a requirement wherein i want to

Re: Does solrj return result in XML format? If not then how to make it do that.

2009-05-04 Thread Ryan McKinley
use this constructor: public CommonsHttpSolrServer(String solrServerUrl, HttpClient httpClient, ResponseParser parser) throws MalformedURLException { this(new URL(solrServerUrl), httpClient, parser, false); } and give it the XMLResponseParser -- - - - Is this just helpful for

DIH ConcurrentModificationException

2009-05-04 Thread Walter Ferrara
I've got a ConcurrentModificationException during a cron-ed delta import of DIH, I'm using multicore solr nightly from hudson 2009-04-02_08-06-47. I don't know if this stacktrace maybe useful to you, but here it is: java.util.ConcurrentModificationException at

Re: Does solrj return result in XML format? If not then how to make it do that.

2009-05-04 Thread Ryan McKinley
The point of using solrj is that you don't have to do any parsing yourself -- you get access to the results in object form. If you need to do parsing, just grab the xml directly: http://host/solr/select?q=*:*wt=xml On May 4, 2009, at 9:36 AM, ahmed baseet wrote: As I know when we query

autoSuggest

2009-05-04 Thread sunnyfr
Hi, I would like to know how work /autoSuggest. I do have result when I hit : /autoSuggest?terms=trueindent=trueterms.fl=titleterms.rows=5terms.lower=simpomitHeader=true I've: response lst name=terms lst name=title int name=simp74/int int name=simpa129/int int name=simpal2/int int

Re: Highlight MoreLikeThis results?

2009-05-04 Thread Matt Weber
There was a thread about this last week and verdict is currently you can't highlight MoreLikeThis results. Thanks, Matt Weber On May 4, 2009, at 1:22 AM, jli...@gmail.com wrote: My query returns a number of MoreLikeThis results for a given document. I wonder if there is a way to

Re: autoSuggest

2009-05-04 Thread Matt Weber
I am not sure you can return the results in order of frequency, you will have to sort the results yourself. Also, for autoSuggest you will want to add the terms.prefix=input term and terms.lower.incl=false so your example will be: /autoSuggest? terms = true indent = true terms .fl

RE: DC/NOVA LuceneSolr meetup

2009-05-04 Thread Chenini, Mohamed
Hi, Actually I have not yet reached the search/Lucene part on my project (which consists in selling pastries over the internet) but I would like to participate to benefit for the discussion. When will this gathering occur? Regards, Mohamed -Original Message- From: Erik Hatcher

fieldType without tokenizer

2009-05-04 Thread sunnyfr
Hi, I would like to create a field without tokenizer but I've an error, I tried : fieldType name=textSimple class=solr.TextField positionIncrementGap=100 analyzer filter class=solr.WordDelimiterFilterFactory generateWordParts=0 generateNumberParts=0 catenateWords=1

Re: fieldType without tokenizer

2009-05-04 Thread Shalin Shekhar Mangar
On Mon, May 4, 2009 at 9:28 PM, sunnyfr johanna...@gmail.com wrote: Hi, I would like to create a field without tokenizer but I've an error, You can use KeywordTokenizer which does not do any tokenization. -- Regards, Shalin Shekhar Mangar.

Custom Sorting Based on Relevancy

2009-05-04 Thread David Giffin
Hi There, I'm working on a sorting issue. Our site currently sorts by creation date descending, so users list similar products multiple times to show up at the top of the results. When sorting based on score, we want to move items by the same user with the same title down search results. It would

Solr autocompletion in rails

2009-05-04 Thread manisha_5
Hi, I am new to solr. I am using solr server to index the data and make search in a Ruby on rails project.I want to add autocompletion feature. I tried with the xml patch in the schema.xml file of solr, but dont know how to test if the feature is working.also havent been able to integrate the

Re: Solr autocompletion in rails

2009-05-04 Thread Matt Weber
You will probably want to use the new TermsComponent in Solr 1.4. See http://wiki.apache.org/solr/TermsComponent . I just recently wrote a blog post about using autocompletion with TermsComponent, a servlet, and jQuery. You can probably follow these instructions, but instead of writing a

Re: Update an existing Solr Index

2009-05-04 Thread Amit Nithian
I believe you do have to re-index the entire document. From what I have read, this is a Lucene limitation not a Solr one. I have run into this problem too and it's a pain to deal with. If you have data relevant for ranking but not searching, then consider storing it elsewhere and write a custom

Re[2]: Highlight MoreLikeThis results?

2009-05-04 Thread jlist9
I see. Thanks. There was a thread about this last week and verdict is currently you can't highlight MoreLikeThis results. Thanks, Matt Weber My query returns a number of MoreLikeThis results for a given document. I wonder if there is a way to highlight the terms in the MoreLikeThis

schema.xml: default values for @indexed and @stored

2009-05-04 Thread Michael Ludwig
From the apache-solr-1.3.0\example\solr\conf\schema.xml file: !-- since fields of this type are by default not stored or indexed, any data added to them will be ignored outright -- fieldtype name=ignored stored=false indexed=false class=solr.StrField / So for both fieldtype/@stored and

Slow Post Performance

2009-05-04 Thread jlist9
I have an index of about 6 million small documents. I find that after a few days of on and off posting, searching still works fine but posting gets really slow - client http connection always times out. I restarted server. Then posting speed seemed to have returned to normal. Is this the expected

Re: Slow Post Performance

2009-05-04 Thread Yonik Seeley
On Mon, May 4, 2009 at 1:09 PM, jli...@gmail.com wrote: I have an index of about 6 million small documents. I find that after a few days of on and off posting, searching still works fine but posting gets really slow - client http connection always times out. I restarted server. Then posting

Re: Authenticated Indexing Not working

2009-05-04 Thread Allahbaksh Asadullah
Hi, My error is as below. If authentication error while indexing with authentication enable (Basic GET/POST) org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at

Re: schema.xml: default values for @indexed and @stored

2009-05-04 Thread Otis Gospodnetic
Attribute values for fields should be inherited from attribute values of their field types. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Michael Ludwig m...@as-guides.com To: solr-user@lucene.apache.org Sent: Monday, May 4, 2009

Re: Update an existing Solr Index

2009-05-04 Thread Otis Gospodnetic
Correct. For an attempt to allow only field-level updates (without requiring the whole document to be re-analyzed and re-indexed) please see SOLR-139. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Amit Nithian anith...@gmail.com To:

Re: Custom Sorting Based on Relevancy

2009-05-04 Thread Otis Gospodnetic
Or you could collapse search results with SOLR-236. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: David Giffin da...@giffin.org To: solr-user@lucene.apache.org Sent: Monday, May 4, 2009 12:37:29 PM Subject: Custom Sorting Based on

Re: offline solr indexing

2009-05-04 Thread Otis Gospodnetic
This should be fine. You won't have to replicate your index, just reopen the searcher when commit is done, that's all. Index updates and searches can be happening at the same time. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Charles

Shutting down an instance of EmbeddedSolrServer

2009-05-04 Thread Eric Pugh
Hi all, I notice that when I use EmbeddedSolrServer I have to use Control C to stop the process. I think the way to shut it down is by calling coreContainer.shutdown(). However, is it possible to get the coreContainer from a SolrServer object? Right now it is defined as protected final

Re: Slow Post Performance

2009-05-04 Thread jlist9
I'm using the embedded Jetty. I have an index of about 6 million small documents. I find that after a few days of on and off posting, searching still works fine but posting gets really slow - client http connection always times out. I restarted server. Then posting speed seemed to have

Re: Hierarchal Faceting Field Type

2009-05-04 Thread Nasseam Elkarra
Hello Koji, I applied the patch: http://issues.apache.org/jira/browse/SOLR-64 It's working but I have a question about facet.prefix. When we add a facet.prefix it filters the facet results but not the query results. Is there a way to filter both? Thank you, Nasseam On Apr 14, 2009, at

Re: Hierarchal Faceting Field Type

2009-05-04 Thread Yonik Seeley
On Mon, May 4, 2009 at 5:28 PM, Nasseam Elkarra nass...@bodukai.com wrote: Hello Koji, I applied the patch: http://issues.apache.org/jira/browse/SOLR-64 It's working but I have a question about facet.prefix. When we add a facet.prefix it filters the facet results but not the query results.  

Distributed Sizing Question

2009-05-04 Thread Todd Benge
Hi, We're in the process of converting a Lucene deployment of 500 M documents / 60 G deployment into a Solr Distributed search deployment. The primary reason for the change is instability in the Lucene deployment due to memory constraints. The existing infrastructure is deployed on 48 machines

Getting access to current core's conf dir

2009-05-04 Thread Amit Nithian
How do you get access to the current SolrCore in code? More specifically, I am looking for the conf/ directory for the current core (i.e. I have a configuration file housed in SOLR_HOME/core_name/conf and would like to get at the SOLR_HOME/core_name/conf directory.) I was able to do this in 1.2

Re: Distributed Sizing Question

2009-05-04 Thread Otis Gospodnetic
Hi Todd, It depends what kind of hardware you run this on. 4 instances of 15GB shard 1 @ machines 1-4 behind VIP1 4 instances of 15GB shard 2 @ machines 5-8 behind VIP2 4 instances of 15GB shard 3 @ machines 9-12 behind VIP3 4 instances of 15GB shard 4 @ machines 13-16 behind VIP4 This is what

Re: Does solrj return result in XML format? If not then how to make it do that.

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
The we interface returns the data in xml for mat because that is the most readable format.SolrJ uses a compact binary format by default. But you can make it use xml as well. but there is no real use case for using xml with solrJ On Mon, May 4, 2009 at 7:06 PM, ahmed baseet ahmed.bas...@gmail.com

Re: Getting access to current core's conf dir

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
What component is trying to get the SolrCore? if it is implemented as SolrCoreAware it gets a callback after the core is completely initialized. On Tue, May 5, 2009 at 4:29 AM, Amit Nithian anith...@gmail.com wrote: How do you get access to the current SolrCore in code? More specifically, I am

Core Reload issue

2009-05-04 Thread Sagar Khetkade
Hi, I came across a strange problem while reloading the core in multicore scenario. In the config of one of the core I am making changes in the synonym and stopword files and then reloading the core. The core gets reloaded but the changes in stopword and synonym fiels does not get reflected

Re: Shutting down an instance of EmbeddedSolrServer

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
hi Eric, there should be a getter for CoreContainer in EmbeddedSolrServer. Open an issue --Noble On Tue, May 5, 2009 at 12:17 AM, Eric Pugh ep...@opensourceconnections.com wrote: Hi all, I notice that when I use EmbeddedSolrServer I have to use Control C to stop the process.  I think the way

Re: DIH ConcurrentModificationException

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
hi Walter, it needs synchronization. I shall open a bug. On Mon, May 4, 2009 at 7:31 PM, Walter Ferrara walters...@gmail.com wrote: I've got a ConcurrentModificationException during a cron-ed delta import of DIH, I'm using multicore solr nightly from hudson 2009-04-02_08-06-47. I don't know

Re: Core Reload issue

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
If you change the the conf files and if you reindex the documents it must be reflected are you sure you re-indexed? On Tue, May 5, 2009 at 10:00 AM, Sagar Khetkade sagar.khetk...@hotmail.com wrote: Hi, I came across a strange problem while reloading the core in multicore scenario. In the

Re: Getting access to current core's conf dir

2009-05-04 Thread Amit Nithian
I am trying to get at the configuration directory in an implementation of the SolrEventListener. 2009/5/4 Noble Paul നോബിള്‍ नोब्ळ् noble.p...@gmail.com What component is trying to get the SolrCore? if it is implemented as SolrCoreAware it gets a callback after the core is completely

Re: Getting access to current core's conf dir

2009-05-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
Make your class implement the interface SolrCoreAware and you will get a callback with the core. On Tue, May 5, 2009 at 11:11 AM, Amit Nithian anith...@gmail.com wrote: I am trying to get at the configuration directory in an implementation of the SolrEventListener. 2009/5/4 Noble Paul