RE: Solr Server Configuration

2007-07-06 Thread Vince McNamara
Hi Nithya I'm new to this myself and I'm sure there are other ways to POST to solr but here's one way. This uses the Apache commons HttpClient - downloaded from http://jakarta.apache.org/commons/httpclient/ You need to change the first parameter to the StringRequestEntity constructor to use a

RE: Solr Server Configuration

2007-07-06 Thread Kijiji Xu, Ping
i) In lucene we add document by using java. But here they given in xml format and posting them using POST.jar. How can i add document in java? In java ,there have a class named org.apache.solr.util.SimplePostTool ,you can look at the source code of it,and you'll know how it worked for posting

Re: Solr Server Configuration

2007-07-06 Thread Tristan Vittorio
If you are used to working with Lucene and want to interface Solr directly from within a java application, you can take a look at DirectSolrConnection from EmbeddedSolr, check the wiki page http://wiki.apache.org/solr/EmbeddedSolr for more info. cheers, Tristan On 7/6/07, Kijiji Xu, Ping

Re: Solr Server Configuration

2007-07-06 Thread Karen Loughran
I use solr with tomcat 5.5.23. I have successfully used Darren Erik Vengroff's java client for adding and deleting found on this page. http://wiki.apache.org/solr/SolJava I also successfully use EmbeddedSolr for direct API usage (found at the end of this link) Karen On Friday 06 July

most popular/most commonly accessed records

2007-07-06 Thread Karen Loughran
Hi all, Is there a way through solr to find out about most commonly accessed solr documents ? So for example, my client may wish to list the top 10 most popular videos, based on previous accesses to them in the solr server db. If there are any solr features to help with this can someone

Re: Checking for empty fields

2007-07-06 Thread Yonik Seeley
On 7/5/07, Norskog, Lance [EMAIL PROTECTED] wrote: I understand that I cannot query on the 'null' value for a field, and so I should make null fields -1 instead. About dynamic fields: is there a way to query for the existence of a dynamic field? You could use an open-ended range query: For

Re: most popular/most commonly accessed records

2007-07-06 Thread Walter Underwood
Solr doesn't have a record of what documents were accessed. The document cache shows which documents were in the parts of search result list which were served, but probably not a count of those inclusions. Luckily, this information is trivial to get from HTTP server access logs. Look for

Re: Solr Server Configuration

2007-07-06 Thread Yonik Seeley
On 7/6/07, Karen Loughran [EMAIL PROTECTED] wrote: I use solr with tomcat 5.5.23. I have successfully used Darren Erik Vengroff's java client for adding and deleting found on this page. http://wiki.apache.org/solr/SolJava I also successfully use EmbeddedSolr for direct API usage (found at the

Re: most popular/most commonly accessed records

2007-07-06 Thread Peter Manis
Maybe create a snippet of code in the page of the video information that if the page was accessed from search results it will increment a counter within a database (sqlite, mysql, etc). You can then update solr every so often (daily, hourly, twice a day, etc) and include the hits. This would

Re: Pluggable IndexSearcher Proposal

2007-07-06 Thread Chris Hostetter
: I need a new feature in solr : to allow the configuration of the : IndexSearcher class in the schema configuration to override the lucene : IndexSearcher . I haven't had a chance to look at the patch you submited yet, but can you elaborate on your use case? There's another open issue relating

Re: Pluggable IndexSearcher Proposal

2007-07-06 Thread Chris Hostetter
: I also created an issue in the solr jira: : https://issues.apache.org/jira/browse/SOLR-288 but I didn t find the way : to upload the patch. look in the left nav of the Jira issue screen after creating the issue, there is an Attach file to this issue link. -Hoss

webapp_name in commit and optimize

2007-07-06 Thread Xuesong Luo
Hi, I deployed solr web app with a different name then found commit does not work. When I looked at the code, I saw variable webapp_name is populated but not used. It always uses solr as the web app name. optimize has the same problem. Is this a known bug? Wrong: rs=`curl

Re: webapp_name in commit and optimize

2007-07-06 Thread Chris Hostetter
: but not used. It always uses solr as the web app name. optimize has the : same problem. Is this a known bug? which version of Solr are you using? 1.2 added a new webapps_name option. -Hoss

Re: webapp_name in commit and optimize

2007-07-06 Thread Tobin Cataldo
It defaults to solr, are you specifying your webapp name when you invoke the program? usage: $prog [-h hostname] [-p port] [-u username] [-U url] [-v] [-V] ... -w specify name of Solr webapp (defaults to solr) Xuesong Luo wrote: I'm using 1.2, yes, it adds a webapps_name

RE: webapp_name in commit and optimize

2007-07-06 Thread Chris Hostetter
: I'm using 1.2, yes, it adds a webapps_name option, but it's never used : in the commit/optimizer. uh are you sure you are using 1.2? http://svn.apache.org/viewvc/lucene/solr/tags/release-1.2.0/src/scripts/commit?view=markup

RE: webapp_name in commit and optimize

2007-07-06 Thread Xuesong Luo
I configured the webapp name in scripts.conf, just found our bin directory has not been updated to 1.2. That's the problem. Thanks Xuesong -Original Message- From: Tobin Cataldo [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 10:44 AM To: solr-user@lucene.apache.org Subject: Re:

RE: webapp_name in commit and optimize

2007-07-06 Thread Xuesong Luo
Hmmm, it's different than the one I got, we may just installed the search.war from 1.2 but forgot to update the bin. Thanks Xuesong -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 10:44 AM To: solr-user@lucene.apache.org Subject: RE:

RE: webapp_name in commit and optimize

2007-07-06 Thread Xuesong Luo
I'm using 1.2, yes, it adds a webapps_name option, but it's never used in the commit/optimizer. -Original Message- From: Chris Hostetter [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 10:32 AM To: solr-user@lucene.apache.org Subject: Re: webapp_name in commit and optimize : but

Re: Indexing HTML and other doc types

2007-07-06 Thread Otis Gospodnetic
Uh, lots of confusion in this thread: Peter: Nutch does have plugins for parsing PDFs, Word documents, and so on. Kuro: Solr does not have the crawling component. Use Nutch to crawl. Nutch also has a built-in webapp for searching. Of course, you can get Solr to search the content that Nutch

Re: Spell Check Handler

2007-07-06 Thread Tristan Vittorio
I couldn't find any documention on the spell check handler either but found enough information from the solrconfig.xml file, simply search for SpellCheckerRequestHandler (online version here): http://svn.apache.org/repos/asf/lucene/solr/trunk/example/solr/conf/solrconfig.xml You can view the