Re: index enum

2011-11-02 Thread Radha Krishna Reddy
Hi Gora, Thanks for the replay. First question is clear. Second,How can i index 2 column where one column will be the entity name and the other will be the value of the entity in the data-config.xml? is it possible to provide me some sample? Thanks and Regards, Radhakrishna Reddy. On Wed, Nov

SOLRJ commitWithin inconsistent

2011-11-02 Thread Vijay Sampath
Hi, I'm using CommitWithin for immediate commit. The response times are inconsistent. Sometimes it's less than a second. Sometimes more than 25 seconds. I'm not sending concurrent requests. Any idea? http://wiki.apache.org/solr/CommitWithin Snippet: UpdateRequest req = new UpdateReques

Re: Solr real-time update taking time

2011-11-02 Thread Vijay Sampath
Hi Jan, Thanks very much for the suggestion. I used CommitWithin(5000) and the response came down to less than a second. But I see an inconsistent behaviour on the response times. Sometimes it's taking more than 20-25 seconds. May be I'll open up a separate thread. -- View this message in co

Re: how to : multicore setup with same config files

2011-11-02 Thread Val Minyaylo
Have you tried to query multiple cores at same time? On 10/31/2011 8:30 AM, Vadim Kisselmann wrote: it works. it was one wrong placed backslash in my config;) sharing the config/schema files is not a problem. regards vadim 2011/10/31 Vadim Kisselmann Hi folks, i have a small blockade in the

Extended Dismax and Proximity Queries

2011-11-02 Thread Jamie Johnson
Is it possible to do Proximity queries using edismax? I saw I could do the following q="batman movie"&qs=100 but I wanted to be able to handle queries like "batman movie"~100 I know I can do text:"batman movie"~100 but I'm trying to do this without specifying a field. Is this possible?

Highlighting "text" field when query is for "string" field

2011-11-02 Thread solrdude
I have situation where I need to highlight matching phrases in "text" field where as query is against "string" field. Its not highlighting now, may be because in text field they are all terms and hence not a match for phrase. How do i do it? With hl.alternateField, it identifies those things in fi

RE: Mailing List

2011-11-02 Thread Steven A Rowe
Hi Carol, Solr mailing list subscription is self-service. Go here and click on the "Subscribe to List" link under the "Users" section. Steve > -Original Message- > From: Carol Kuzel [mailto:cku...@ebscohost.com] > Sent: Wednesday, Nov

Mailing List

2011-11-02 Thread Carol Kuzel
Hello, Can you please add me to the Solr users mailing list. Thank you very much. Carol Swaine-Kuzel cku...@ebscohost.com

Setting up Solr for first time

2011-11-02 Thread MBD
Looking for help getting a basic (the example) configuration up and stabilized so we can start experimenting with it. Requirement being that it index PDFs. After basic install Solr (3.4) is indexing raw text/html files. But when feeding in a PDF I'm getting a permissions error but not sure how t

Re: form-data post to ExtractingRequestHandler with utf-8 characters not handled

2011-11-02 Thread kgoess
I finally managed to answer my own question. UTF-8 data in the body is ok, but you need to specify charset=utf-8 in the Content-Type header in each part, to tell the receiver (Solr) that it's not the default ISO-8859-1 Content-Disposition: form-data; name=literal.bptitle Content-Type: text/p

Re: Solr real-time update taking time

2011-11-02 Thread Vijay Sampath
I'll try to use CommitWithin. Just to confirm, if I have the value as 2 seconds, will it affect my search performance? To answer you questions, 1. spellCheck is not used with buildOnCommit 2. Index size is 16.1 GB and RAM allocated to JVM 1GB. -- View this message in context: http://lucene.4

RE: SolrCloud with large synonym files

2011-11-02 Thread Phil Hoy
I tried adding the property but it did not seem to improve things. I did however get it working by noticing that the ZkSolrResourceLoader has a fall back to load resources from the shared lib, this worked for me. Thanks for getting back to me. Phil -Original Message- From: Mark Miller

Re: SolrCloud with large synonym files

2011-11-02 Thread Robert Muir
On Wed, Nov 2, 2011 at 8:53 AM, Phil Hoy wrote: > It is solr 4.0 and uses the new FSTSynonymFilterFactory i believe but defers > to ZkSolrResourceLoader to load the synonym file when in cloud mode. > Phil > FYI: The synonyms implementation supports multiple formats (currently "solr" and "wordnet

Re: SolrCloud with large synonym files

2011-11-02 Thread Mark Miller
On Nov 2, 2011, at 7:47 AM, Phil Hoy wrote: > Hi, > > I am running solrcloud and a file in the Dbootstrap_confdir is a large large > synonym file (~50mb ) used by a SynonymFilterFactory configured in the > schema.xml. When i start solr I get a zookeeper exception presumably because > the file

limiting searches to particular sources

2011-11-02 Thread Fred Zimmerman
I want to be able to list some searches to particular sources, e.g. "wiki only", "crawled only", etc. So I think I need to create a source field in the schema.xml. However, the native data for these sources does not contain source info (e.g. "crawled"). So I want to use (I think) to add a strin

RE: SolrCloud with large synonym files

2011-11-02 Thread Phil Hoy
It is solr 4.0 and uses the new FSTSynonymFilterFactory i believe but defers to ZkSolrResourceLoader to load the synonym file when in cloud mode. Phil -Original Message- From: ☼ 林永忠 ☼ (Yung-chung Lin) [mailto:henearkrx...@gmail.com] Sent: 02 November 2011 12:24 To: solr-user@lucene.apach

how to apply sort and search both on multivalued field in solr

2011-11-02 Thread vrpar...@gmail.com
Hello all, i did googling and also as per wiki, we can not apply sorting on multivalued field. workaround for that is we need to add two more fields for particular multivalued field, min and max. e.g. multivalued field have 4 values "abc",

Re: shard indexing

2011-11-02 Thread Vadim Kisselmann
Hello Jan, i think personally the same (switch URL for my indexing code), but my requirement is to use the same query. Thanks for your suppose with this one trick. Great idea which could work in my case, i test it. Regards Vadim 2011/11/2 Jan Høydahl > Personally I think it is better to be e

Re: SolrCloud with large synonym files

2011-11-02 Thread Yung-chung Lin
Hi, I didn't use Solr with Zookeeper before. But Solr 3.4 implements the synonym module with a different data structure. If the version of your Solr is not 3.4, then maybe you can try upgrading it first. See also this thread on stackoverflow. http://stackoverflow.com/questions/6747664/solr-and-bi

SolrCloud with large synonym files

2011-11-02 Thread Phil Hoy
Hi, I am running solrcloud and a file in the Dbootstrap_confdir is a large large synonym file (~50mb ) used by a SynonymFilterFactory configured in the schema.xml. When i start solr I get a zookeeper exception presumably because the file size is too large. Caused by: org.apache.zookeeper.Keep

Re: shard indexing

2011-11-02 Thread Vadim Kisselmann
Hello Yury, thanks for your response. This is exactly my plan. But "defaultCoreName" is buggy. When i use it (defaultCore="core_november"), the defaultCore will be deleted. I think this here was the issue: https://issues.apache.org/jira/browse/SOLR-2127 Do you use this feature and did it work? T

Re: exact matches possible?

2011-11-02 Thread Erik Hatcher
It's certainly quite possible with Lucene/Solr. But you have to index the field to accommodate it. If you literally want an exact match query, use the "string" field type and then issue a term query. q=field:value will work in simple cases (where the value has no spaces or colons, or other qu

exact matches possible?

2011-11-02 Thread Roland Tollenaar
Hi, I am trying to do a search that will only match exact words on a field. I have read somewhere that this is not what SOLR is meant for but I am still hoping that its possible. This is an example of what I have tried (to exclude spaces) but the workaround does not seem to work. Word:appl

Re: shard indexing

2011-11-02 Thread Yury Kats
There's a "defaultCore" parameter in solr.xml that let's you specify what core should be used when none is specified in the URL. You can change that every time you create a new core. > >From: Vadim Kisselmann >To: solr-user@lucene.apache.org >Sent: Wednesday, N

Re: shard indexing

2011-11-02 Thread Jan Høydahl
Personally I think it is better to be explicit about where you index, so that when you create a new shard "december", you also switch the URL for your indexing code. I suppose one trick you could use is to have a core called "current", which now would be for november, and once you get to decemb

Re: shard indexing

2011-11-02 Thread Vadim Kisselmann
Hello Jan, thanks for your quick response. It's quite difficult to explain: We want to create new shards on the fly every month and switch the default shard to the newest one. We always want to index to the newest shard with the same update query like http://localhost:8983/solr/update.(content s

Re: shard indexing

2011-11-02 Thread Jan Høydahl
Hi, The only difference is the core name in the URL, which should be easy enough to handle from your indexing client code. I don't really understand the reason behind your request. How would you control which core to index your document to if you did not specify it in the URL? You could name O

Re: Deleting documents not shown in response?

2011-11-02 Thread Jan Høydahl
Hi, The response only tells you status code and time. If you delete by query, you can simply do a normal query before the delete query to get the IDs. It would not either be easy to add a patch for this either, as the deleteByQuery call happens deep within IndexWriter, not returning any info. -

Re: Solr real-time update taking time

2011-11-02 Thread Jan Høydahl
Hi, You probably want to use CommitWithin: http://wiki.apache.org/solr/CommitWithin to limit the number of commits to a minimum. Some other questions: * Are you using spellcheck with builtOnCommit? That totally kills commit performance... * What's your index size, total RAM and allocated RAM to

Re: index enum

2011-11-02 Thread Gora Mohanty
On Tue, Nov 1, 2011 at 11:07 PM, Radha Krishna Reddy wrote: [...] > 1. I have an enum column in my sql table.i want to index that column.which > fieldtype should i specify in the schema.xml for enum? I presume that you are using the DataImportHandler for indexing. You will need to convert the en

shard indexing

2011-11-02 Thread Vadim Kisselmann
Hello folks, i have an problem with shard indexing. with an single core i use this update command: http://localhost:8983/solr/update . now i have 2 shards, we can call them core0 / core1 http://localhost:8983/solr/core0/update . can i adjust anything to indexing in the same way like wit