Stopping Solr

2009-10-05 Thread Sandeep Tagore
Hello Everyone, I use "java -jar start.jar" command to start Solr. And when ever i want to stop it, I kill the process. Is there any command to stop it? Thanks in advance. Sandeep ----- Sandeep Tagore -- View this message in context: http://www.nabble.com/Stopping-Solr-tp2575146

Re: search by some functionality

2009-10-05 Thread Sandeep Tagore
Hi Elaine, You can make use of http://wiki.apache.org/solr/FunctionQuery Function Query to achieve this. You can do the computations in your customized function to determine whether it is a hit or not. Sandeep - Sandeep Tagore -- View this message in context: http://www.nabble.com

Re: search by some functionality

2009-10-06 Thread Sandeep Tagore
Hi Elaine, You can implement a function query in Solr in two ways: 1. Using Dismax request handler (with bf parameter). 2. Using the standard request handler (with _val_ field). I recommend the first option. Sandeep Elaine Li wrote: > > Hi Sandeep, > > I read about this chapter before. It

Re: Solr Quries

2009-10-07 Thread Sandeep Tagore
lient-API with simple java beans. Hope this info helps you. Regards, Sandeep Tagore -- View this message in context: http://www.nabble.com/Solr-Quries-tp25780371p25783891.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Indexing and searching of sharded/ partitioned databases and tables

2009-10-07 Thread Sandeep Tagore
declaring the field. Make sure that you are not overwriting the records. And if you are working on large data sets, you can use Solr Sharding concept. Let us know if you have any issues. Regards, Sandeep Tagore -- View this message in context: http://www.nabble.com/Indexing-and-searching-of

Re: How to retrieve the index of a string within a field?

2009-10-07 Thread Sandeep Tagore
Hi Elaine, What do you mean by "index of this word".. do you want to return the first occurrence of the word in that sentence or the document id. Also which type of field is it? is it a Text or String? If that is of type Text.. u can't achieve that because the sentence will be tokenized. Sandeep

Re: How to retrieve the index of a string within a field?

2009-10-07 Thread Sandeep Tagore
Hi Elaine, You can achieve that with some modifications in sol configuration files. Generally text will be configured as When a field is declared as text(with above conf.) it will tokenized. Say, for example,

Re: How to determine the size of the index?

2009-10-07 Thread Sandeep Tagore
Are you referring to schema info ??? You can find it at http://192.168.5.25/solr/admin/file/?file=schema.xml and http://192.168.5.25/solr/admin/schema.jsp Fishman, Vladimir wrote: > > Is this info available via admin page? > -- View this message in context: http://www.nabble.com/How-to-ret

Re: How to retrieve the index of a string within a field?

2009-10-07 Thread Sandeep Tagore
Elaine, The field type text contains in its definition. So all the sentences that are indexed / queried will be split in to words. So when you search for 'get what you', you will get sentences containing get, what, you, get what, get you, what you, get what you. So when you try to find the indexO

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
Hi Rihaed, I guess we don't need to depend on scores all the times. You can use custom sort to sort the results. Take a dynamicField, fill it with indexOf(keyword) value, sort the results by the field in ascending order. Then the records which contain the keyword at the earlier position will come

RE: Problems with WordDelimiterFilterFactory

2009-10-07 Thread Sandeep Tagore
Hi Bern, I indexed some records with - and : today using your configuration and I searched with following urls http://localhost/solr/select?q=CONTENT:"cold : temperature" http://localhost/solr/select?q=CONTENT:"cold: temperature" http://localhost/solr/select?q=CONTENT:"cold :temperature" http://lo

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
Hi Avlesh, Thanks for your attention to my post. 1. If the word "computer" occurs in multiple times in a document what would you do in that case? Is this dynamic field supposed to be multivalued? I can't even imagine what would you do if the word "computer" occurs in multiple documen

Re: Scoring for specific field queries

2009-10-07 Thread Sandeep Tagore
Yes it can be done but it needs some customization. Search for custom sort implementations/discussions. You can check... http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html. Let us know if you have any issues. Sandeep R. Tan wrote: > > This might work and I also have

Re: how to rename a schema field, whose values are indexed already?

2009-10-08 Thread Sandeep Tagore
I guess you cant do it. I tried it before. I had a field with name 'KEYWORD' and i changed it to 'keyword' and it didn't work. Everything else was normal and I searched with 'KEYWORD' i got an exception saying undefined field and I searched with 'keyword' , I got 0 results. It didn't work even aft

Re: How to retrieve the index of a string within a field?

2009-10-08 Thread Sandeep Tagore
Hi Elaine, As you are able to get the sentences which contains that phrase(when you use double quotes), its ok with the 'text' field type. Frankly speaking, I don't know whether Solrj's http call will hung or not if you try to get 100 thousands records at a time. I never tried that. But I guess y

Re: Search Phrase Wildcard?

2009-06-12 Thread Sandeep Tagore
Yes...!! you can search for phrases with wild cards. You dont have a direct support for it.. but u can achieve like the following... User input: Solr we Query should be: (name:Solr AND (name:we* OR name:we)) OR name:"Solr we" The query builder parses the original input and builds one that simul

Re: Getting details from

2009-06-12 Thread Sandeep Tagore
Anything sent with delete query will be deleted. It doesnt give u the details of the deleted records. For example, if u send a command like 20070424150841 it will delete the record with id 20070424150841 but not give u the record details if it is already deleted. We need to send some query to sol

Find newly added documents

2010-01-21 Thread Sandeep Tagore
Hi All, Is it possible to find the newly added documents in Solr(before or after commit)? To make it clear... Lets assume that there are 1000 docs in the index and we add new docs with id's ab12, bc34, cd56 to the index. Is there a way to get the list of these new docs with any query? Thanks in

Re: Find newly added documents

2010-01-22 Thread Sandeep Tagore
Thanks a lot Erik. Is there any other alternate way? Thanks a lot for your response. Regards, Sandeep You'll be able to find them only after a commit. One way to do this is index a timestamp with every document, and find the latest ones using that field. There's an example of an automatic