Providing fault tolerance with Solr

2009-05-11 Thread mirage1987

Hi, 
   I want to make my system fault tolerant. My system has two shards
each with one master and two slaves. So if any of the slave or master fails
i want my system to continue working.
Any known solutions to this. Does solr provide any such functionalities as
yet.

Thanx. 
-- 
View this message in context: 
http://www.nabble.com/Providing-fault-tolerance-with-Solr-tp23492418p23492418.html
Sent from the Solr - User mailing list archive at Nabble.com.



Getting better performance frm Solr

2009-04-30 Thread mirage1987

hi,
 I was wondering how we can improve the query response time from solr.
Is it possible to put my index into ram to increase performance.Does solr
provide any such functionality???
(like RAMDirectory in lucene.) (working on linux)
I tried to put the index in /dev/shm/ but didn't get ny performance boost
relative to when i had it on disk.
(my index is around 600 MB and i have plenty of ram 8gb)

My underlying lucene is providing an avg queryresponse time of 84 ms
Any idea how much solr would add to this??can i reduce that time???

Thanx.



-- 
View this message in context: 
http://www.nabble.com/Getting-better-performance-frm-Solr-tp23313500p23313500.html
Sent from the Solr - User mailing list archive at Nabble.com.



Getting idf from solr

2009-04-22 Thread mirage1987

Hi,
   Is there any way one can extract the IDF value from the solr index?

Thanx
-- 
View this message in context: 
http://www.nabble.com/Getting-idf-from-solr-tp23180369p23180369.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Customizing solr with my lucene

2009-04-22 Thread mirage1987

Well guys the problem is now solved and evrythin's working perfectly fine.:-)
Thankyou all for your help.
The problem was indeed with the config files (schema and solrconfig). I
rewrote my files from scratch and now everythin's seems to be working. The
debug query option was quite helpful in making me understand solr works and
help me made the required changes to my lucene code and api.



-- 
View this message in context: 
http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23181503.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Customizing solr with my lucene

2009-04-20 Thread mirage1987

Hi,
Here's the schema.xml i am using.

?xml version=1.0 encoding=UTF-8 ?
schema name=myschema version=1.1
  types
fieldType name=string class=solr.StrField sortMissingLast=true
omitNorms=true/
fieldType name=text class=solr.TextField 
positionIncrementGap=100/
  /types
  fields
field name=id type=string indexed=true stored=true
required=true multiValued=true / 
field name=name type=text indexed=true stored=true
multiValued=true / 
field name=value type=text indexed=true stored=true
multiValued=true /
dynamicField name=* type=text indexed=true  stored=true/
  /fields

 uniqueKeyid/uniqueKey

 defaultSearchFieldvalue/defaultSearchField

 solrQueryParser defaultOperator=OR/  
 
 similarity class=org.apache.lucene.search.DefaultSimilarity/
 
/schema

I can't figure out the error. Do u see any probs with the current schema.
The schema is defined as such because i have implemented the my own analyzer
an tokenizer into the 
lucene index writer. So if solr calls the index writer then there should be
no prob.Similarly i have made my changes to the lucene query parser so i
want the default lucene query handling.
So basically i intend to use the solr just to directly call my lucene.
Is it possible or would i have to change the solr code??

One more prob i faced. I want to use dynamic fields=* but it doesn't seem
to work.
As when i remove fieldName=name from the above list no content error is
reported (as my input file has name fields and dynamic field doesn't seem to
catch it)

Any ideas on this.

Thanx.



Allahbaksh Asadullah-2 wrote:
 
 Just check your schema.xmlRegards,
 Allahbaksh
 
 On Fri, Apr 17, 2009 at 7:56 PM, mirage1987 mirage1...@gmail.com wrote:
 

 Hey Erik,
 I also checked the index using luke and the index shows that
 the terms are indexed as they should have been. So that implies that
 something is wrong with the querying only and the results are not getting
 retrieved.(As i said earlier even the parsed query is the way it should
 be
 according to the changes i have made to lucene.)
 Any ideas you have on this. Why this could be happening.

 One more thing... tried to query the solr index using luke ...but still
 no
 resultsmay be the index is not stored correctlycould it be
 changes
 in the lucene api???should i revert to an older version of solr???



 --
 View this message in context:
 http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23098700.html
 Sent from the Solr - User mailing list archive at Nabble.com.


 
 
 -- 
 Allahbaksh Mohammedali Asadullah,
 Software Engineering  Technology Labs,
 Infosys Technolgies Limited, Electronic City,
 Hosur Road, Bangalore 560 100, India.
 (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927.
 Fax: 91-80-28520362 | Mobile: 91-9845505322.
 
 

-- 
View this message in context: 
http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23133779.html
Sent from the Solr - User mailing list archive at Nabble.com.



Does solr directly call underlying lucene functions

2009-04-20 Thread mirage1987

Hi,
I had made some changes to the lucene code .
So i have changes to the index writer,query parser and added some new
classes.
Would this effect the working of solr in any way. Would i have to make any
changes apart from replacing the lucene jar in the war file.
I want solr to just use my lucene.jar without any other addons.(i mean
analyzers,tokenizers defined in schema.xml)

Thanx. 
-- 
View this message in context: 
http://www.nabble.com/Does-solr-directly-call-underlying-lucene-functions-tp23140094p23140094.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Customizing solr with my lucene

2009-04-17 Thread mirage1987

Hey Erik,
 I also checked the index using luke and the index shows that
the terms are indexed as they should have been. So that implies that
something is wrong with the querying only and the results are not getting
retrieved.(As i said earlier even the parsed query is the way it should be
according to the changes i have made to lucene.)
Any ideas you have on this. Why this could be happening.

One more thing... tried to query the solr index using luke ...but still no
resultsmay be the index is not stored correctlycould it be changes
in the lucene api???should i revert to an older version of solr???



-- 
View this message in context: 
http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23098700.html
Sent from the Solr - User mailing list archive at Nabble.com.



Customizing solr with my lucene

2009-04-14 Thread mirage1987

hey,
  I am trying to modify the lucene code by adding payload functionality
into it.
Now if i want to use this lucene with solr what should i do.
I have added this to the lib folder of solr.war replacing the old lucene..Is
this enough??
Plus i am also using a different schema than the default shema.xml used by
solr.(Added some fields and removed some of the previous ones).
The problem i am facing is that now the solr is not returning results but
the lucene individually is for the same query.
Could you help me on this...ny ideas n suggestions??
-- 
View this message in context: 
http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23038007.html
Sent from the Solr - User mailing list archive at Nabble.com.