Re: PHP interface with Solr

2008-12-26 Thread Tony Wang
Now I've found out that there are two options for retrieving the search results: 1. use curl and parse the search results in XML format? 2. use PHP response format to output the search results to arrays, as mention in this tutorial http://wiki.apache.org/solr/SolPHP I wonder which one is better?

Re: PHP interface with Solr

2008-12-26 Thread Ryan McKinley
the url you type has some * in it, make sure they are removed: &*wt=php*&hl also, try adding echoParams=EXPLICIT and make sure the params you are passing get parsed ok. ryan On Dec 26, 2008, at 8:00 PM, Tony Wang wrote: Otis, Thanks. So I can do the search like this: http://208.64.

Re: PHP interface with Solr

2008-12-26 Thread Tony Wang
Otis, Thanks. So I can do the search like this: http://208.64.71.46:8983/solr/select?q=RC&start=0&rows=10&fl=title%2Curl%2Cscore&qt=standard&; *wt=php*&hl=on&hl.fl=content I tried this link on my server (see above IP), and it gives me an XML file. I don't have to use PHP response formatter to co

Re: Any new python libraries?

2008-12-26 Thread Otis Gospodnetic
So many client flavours. I bet figuring out what the best client library to use is hard for people. Any way to consolidate? For example, would it be possible for you to take any new and useful functionality that you've built into your client and add it to solrpy? Otis -- Sematext -- http://

Re: PHP interface with Solr

2008-12-26 Thread Otis Gospodnetic
Tony, If I had to guess, I'd guess that you can get the PHP version of the response by using &wt=php in the URL. Have you tried that? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: Tony Wang > To: solr-user@lucene.apache.org > Sent: Fr

Re: Issues with facet.prefix & multiple facet.fiel

2008-12-26 Thread Yonik Seeley
Parameters are not positional. The wiki says """Note that many parameters may be overridden on a per-field basis with the following syntax: f..= """ So to specify a prefix for the field cidsWithParent, use f.cidsWithParent.facet.prefix=9AAC1001 -Yonik On Fri, Dec 26, 2008 at 7:38 PM, Taru

Issues with facet.prefix & multiple facet.field

2008-12-26 Thread Tarun Jain
Hi, I am trying to facet on multiple fields and I want to limit the values to facet on using facet.prefix The wiki says that the facet.prefix parameter can be specified on a per field basis Example: http://localhost:8983/solr/select?q=*:*&indent=on&facet=on&rows=0&facet.field=cidsWithParen

Re: Any new python libraries?

2008-12-26 Thread Jacob Singh
I hacked a very incomplete one up for a recent task: http://pastebin.ca/1294198 I don't know the status of solrpy, but if people are interested in running with this, I can put a license header on it and add it somwhere. Best, Jacob On Tue, Dec 23, 2008 at 9:53 AM, Ed Summers wrote: > It should

PHP interface with Solr

2008-12-26 Thread Tony Wang
I would like to use PHP to send the query to Solr and will parse the results in XML. I read this article wiki here http://wiki.apache.org/solr/SolPHP?highlight=(PHP), but don't quite understand how to add *the PHP* response formatter to Solr. SOLR-196

Re: Retrieve documents that contain max value for a field

2008-12-26 Thread Sushil Vegad
Thanks Otis, for the quick reply. I dont find anything on the forums or the FAQ. I guess I cant get solr to compare search result documents that have the same topicId and then look for the maximum value of versionId in that set. I may need to write that logic in my application. Thanks, Sushil

Re: Please help me integrate Nutch with Solr

2008-12-26 Thread Otis Gospodnetic
Tony, You started an example Solr application. This application has no knowledge of your Nutch setup and the Lucene index that you've presumably built with Nutch. The simplest thing you can do to get something to "work" is to locate your Lucene/Nutch index and copy all of its contents to sol

Re: Please help me integrate Nutch with Solr

2008-12-26 Thread Tony Wang
Thanks for the reply, I appreciate it. Basically, I downloaded the latest nightly build of Solr --> unzip it --> shut down Tomcat -->copy the solr.war file to the Tomcat webapps container (/opt/tomcat6/webapps) --> start Tomcat --> set up the schema.xml file located in /opt/tomcat6/webapps/solr/ex

Re: Custom Search Results

2008-12-26 Thread Otis Gospodnetic
Hi Johnny, It sounds like you wish to post-process and analyze results and categorize each document in the result set based on presence and positioning of certain key words in the document. If that's so, I think what you are after is a custom SearchComponent: http://wiki.apache.org/solr/Search

Re: Please help me integrate Nutch with Solr

2008-12-26 Thread Otis Gospodnetic
Hi Tony, It looks like you already asked on the Nutch list. Maybe just stick to one list? It's impossible to tell what went wrong from the information you provided below. Are there any errors in the log? Are you sure your solr home is set correctly? Otis -- Sematext -- http://sematext.com/

Re: Retrieve documents that contain max value for a field

2008-12-26 Thread Otis Gospodnetic
Hi, I'm not sure if Solr is the right tool for the job, if that's all there is to your application, but you might be able to get what you want by simply sorting on the version field. Your version field is a very precise timestamp, which means the version field will have LOTS of unique values,

Retrieve documents that contain max value for a field

2008-12-26 Thread Sushil Vegad
Hi, Can someone please help with how to write a query for the following scenario? We index Topics that contains text. A topic can have many versions, each version is indexed. Our schema has topicid, versionId and timestamp fields, amongst others. Topicid is not a uniqueField because multiple ver

Please help me integrate Nutch with Solr

2008-12-26 Thread Tony Wang
I got the web interface to work at here http://208.64.71.46:8080/search.jsp?lang=en&query=tony , but my search query in Solr doesn't seem to work correctly. There is no any result retrieved from http://208.64.71.46:8983/solr/select?q=tony&start=0&rows=10&fl=title%2Curl%2Cscore&qt=standard&wt=standa

Re: Wordnet look-up

2008-12-26 Thread Grant Ingersoll
There is some Wordnet functionality in Lucene contrib, but it isn't currently exposed in Solr. I'm not sure if it is useful for you or not, as I've never used it (or really even looked at the APIs), but you might have a look and see if it helps. -Grant On Dec 26, 2008, at 5:59 AM, Sagar K

Re: Limiting the result content

2008-12-26 Thread Grant Ingersoll
Is the relevant part contained in a single smaller field or are you saying you want to extract the relevant part from the larger overall document? In the former case, the "fl" parameter (http://wiki.apache.org/solr/CommonQueryParameters#head-db2785986af2355759faaaca53dc8fd0b012d1ab ) allows

Wordnet look-up

2008-12-26 Thread Sagar Khetkade
Hi, Need some information about the Solr 1.3 look up for synonyms in the WordNet dictionary during search and indexing other than the approach i.e SynonymFilterFactory. Do Solr have such feature or we have to write our own plug-in(analyzer) for the same. Thanks in advance Regards, Sagar K