specify index location

2007-11-04 Thread evol__

hi everyone, my first post on this mailing list. let me just shout a big
thanks to everyone involved in this wonderful project. only working with
solr  lucene for a little while, and am already getting happy with the
results:)

the question is - is it possible to tell a solr instance the location of its
index (to set it to something else than [solrhome]/data/index?)

one of my indexes is fairly huge and i wouldn't like to copy it to my
machine from the server every time i reindex. the server solr instance needs
to run constantly since other parts of our system-in-work are using it (so
it's not suitable for developing on). the index i test my handlers with and
the server one must be identical for general comparibility.

i can map a server location as a local path.

thank you for your replies.
david p.

-- 
View this message in context: 
http://www.nabble.com/specify-index-location-tf4748921.html#a13579375
Sent from the Solr - User mailing list archive at Nabble.com.



customer request handler doesn't envok the query tokenization chain

2007-11-04 Thread Yu-Hui Jin
hi, there,

Here's a question regarding the relationship of a customer request handler
and a customer field type.

Let's say we defined a customer filed type that when querying and indexing,
the solr.LowerCaseFilterFactory is used as the last filter to low-case all
letters.  In the Analysis UI, we found tokenization is working correctly.

We also defined  a custom request handler which always creates a boolean
query that ANDs all tokens for fielded queries (we overrided the
getFieldQuery method only).  Now the problem occurs that when we use the
custom request handler to handle queries. we only get results for low-case
query string,  but not for the upper-case version.   (This is true when I
turned the debugQuery flag on and I saw the query string hasn't been
low-cased)  If we switch to use the Standard request handler, we don't have
the problem.   It seems that when using the customer request handler, the
tokenizer/filters chain is not executed (since the low-case filter is not
applied).   I'm not sure why.

Anyone knows what I'm missing here?


many thanks,

-Hui


Re: specify index location

2007-11-04 Thread Grant Ingersoll
Have a look at the solrconfig.xml file (explained at http://wiki.apache.org/solr/SolrConfigXml) 
 and the dataDir setting.  You can, also, move your Solr home and you  
could also try a symbolic link.


Cheers,
Grant

On Nov 4, 2007, at 6:47 PM, evol__ wrote:



hi everyone, my first post on this mailing list. let me just shout a  
big
thanks to everyone involved in this wonderful project. only working  
with
solr  lucene for a little while, and am already getting happy with  
the

results:)

the question is - is it possible to tell a solr instance the  
location of its

index (to set it to something else than [solrhome]/data/index?)

one of my indexes is fairly huge and i wouldn't like to copy it to my
machine from the server every time i reindex. the server solr  
instance needs
to run constantly since other parts of our system-in-work are using  
it (so
it's not suitable for developing on). the index i test my handlers  
with and

the server one must be identical for general comparibility.

i can map a server location as a local path.

thank you for your replies.
david p.

--
View this message in context: 
http://www.nabble.com/specify-index-location-tf4748921.html#a13579375
Sent from the Solr - User mailing list archive at Nabble.com.



--
Grant Ingersoll
http://lucene.grantingersoll.com

Lucene Boot Camp Training:
ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ




Re: customer request handler doesn't envok the query tokenization chain

2007-11-04 Thread Yonik Seeley
On 11/4/07, Yu-Hui Jin [EMAIL PROTECTED] wrote:
 Let's say we defined a customer filed type that when querying and indexing,
 the solr.LowerCaseFilterFactory is used as the last filter to low-case all
 letters.  In the Analysis UI, we found tokenization is working correctly.

 We also defined  a custom request handler which always creates a boolean
 query that ANDs all tokens for fielded queries (we overrided the
 getFieldQuery method only).

First, if all you are doing is ANDing all the tokens, you can just
change the default operator to AND (q.op=AND).

Analysis is done during query parsing by the query parser... if you
create your own queries, you need to do that analysis yourself.

-Yonik


too much commit time at Master/Slave

2007-11-04 Thread zeous

Hi~

i have some questions about commit time at Solr Master/Slave 
my system is that total data is about 1,000,000 and solr version is 1.2 
2.4 CPU and centos, 1G memory, JDK 1.5 

For the test, 
master server does only indexing that 1 data indexs per 10 seconds 
and snapshots by postCommit in solrconfig.xml
slaver server snappullers and snapinstallers per 1 minute by crontab

test case is

1) only indexing
when i don't send slave server select query, master sever does indexing and
slave server is sent snapshots.
slave server's snapinstaller time is 0~1 seconds. i thinks that it is
normal.

2) indexing and select
master server does indexing and slaver server is send snapshots
per 2 second, i send slaver server a different query request.
slaver server's snapinstaller time is 6~9 seconds. 
(query request time is 0~1 seconds.)

At this time i stop send query request but slaver server's snapinstaller
time is the same.
i think that  slaver server's snapinstaller time reduce like master server.
(i watch slaver server during 1 hour, but slaver server don't reduce this
time)

after i restart jetty server, this time is 0~1 second. 

what's problems?
-- 
View this message in context: 
http://www.nabble.com/too-much-commit-time-at-Master-Slave-tf4749942.html#a13582146
Sent from the Solr - User mailing list archive at Nabble.com.