Re: solr to work for my web application

2008-02-14 Thread newBea
Hi Thorsten... SOrry for giving u much trouble but I need some answer regarding solr...plz help... Question1 I am using tomcat 5.5.23 so for JNDI setup of solr, adding solr.xml with context fragment as below in the tomcat5.5/...catalina/localhost. Is it the correct way of doing it? Or do

Re: FunctionQuery step function

2008-02-14 Thread Chris Hostetter
: We'd like to restrict older modified documents with a step function, rather : bf="map(map(modified,0,0,today),0,12monthago,0.2) : map(map(modified,0,0,today),12monthago,6monthago,0.3) : map(map(modified,0,0,today),6monthsago,today,1)" : : is this inefficient? For something like this, i would

Re: Highlighting the search results

2008-02-14 Thread Laxmilal Menaria
Ok, Thanks.. On 2/15/08, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > > : I have created a Index of some xml files (xml's was created from mysql > : database) with solr. In xml's I have one text field. (more than 1000 > : characters). Its searches fine, but solr result page is too long. I have

RE: solr to work for my web application

2008-02-14 Thread newBea
My eclipse IDE still gives me suggestion that JNDI is not set properly...How to set JNDI for solr? I am using tomcat5.5.23 and added solr.xml with context fragments inside the tomact5.5/../catalina/localhost. Is it the correct way of doing it? Or do i need to add context fragment in the server.xm

Re: Highlighting the search results

2008-02-14 Thread Chris Hostetter
: I have created a Index of some xml files (xml's was created from mysql : database) with solr. In xml's I have one text field. (more than 1000 : characters). Its searches fine, but solr result page is too long. I have : tried highlight (&hl=on&hl.fl=fname), its shows highlighting results at end :

Re: SolrJ and Unique Doc ID

2008-02-14 Thread Chris Hostetter
: > How do I generate URLs to retrieve a document against any given Solr : > instance that I happen to be pointing at without knowing which field is the : > document id? : : One cool technique, not instead of your change to Luke RH (a needed change : IMO) but another way to go about it - we have

Re: Facing problem with the FieldType of UniqueField

2008-02-14 Thread Chris Hostetter
Bottomline: it's very hard to get everything right with having a uniqueKey field that uses TextField. if your goal is to let your users do case insnsitive or "single word" queries on your uniqueKey field, just just copyFiled to clone it into something more search friendly. -Hoss

Re: Facing problem with the FieldType of UniqueField

2008-02-14 Thread Rishabh Joshi
Ryan, Using the KeywordTokenizer does not help. And there are not any spaces in the unique keys. the keys are alpha numeric. E.g.: AA-23-E1 Regards, Rishabh On Thu, Feb 14, 2008 at 10:28 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: > > > I noticed this happened because the field type was "strin

Re: Alpha numeric sort problem

2008-02-14 Thread Yonik Seeley
On Thu, Feb 14, 2008 at 10:45 PM, Mahesh Udupa <[EMAIL PROTECTED]> wrote: > Even I tried with *text* Field type. But no use. > As splitOnCaseChange="1", do we have splitOnLetterToNumberChange or > something like that? Sorting requires a single token in the field (you want to sort on the whole

Re: Alpha numeric sort problem

2008-02-14 Thread Mahesh Udupa
Thanks Erick for your quick response. Even I tried with *text* Field type. But no use. As splitOnCaseChange="1", do we have splitOnLetterToNumberChange or something like that? Thanks in advance kmu On Thu, Feb 14, 2008 at 9:50 PM, Erick Erickson <[EMAIL PROTECTED]> wrote: > I admit I know l

Re: Filter Query and query score

2008-02-14 Thread Mike Klaas
On 14-Feb-08, at 6:51 AM, tedonk03 wrote: Hi, I also have the same problem. My case is similar like this, but the user can select their preferences. I´ll use climbingrose´s example but add it a little bit. Doc1: [Title=Java; Location=Parramatta, NSW; latitude=x1; longitude=x2] Doc2: [Tit

RE: solr to work for my web application

2008-02-14 Thread Fuad Efendi
It should be easy to configure SOLR Schema, & use SOLRJ client; does not matter jetty/tomcat etc.; stick with simple SOLRJ java client: access database, generate SOLR document, update SOLR, execute query, parse (SOLRJ->SolrDocument), generate content, etc... Much easier, scalable, and more effectiv

How to search multiphrase or a middle term in a word???

2008-02-14 Thread nithyavembu
Hi All, I am facing a problem when search for multiphrases in a word. My index data is : srinivasan,sweetheart,thomasmaster,thomasMaster.(totally 4 words) Scenario : 1 Search data : vasan If i search for "vasan", its return nothing. But the result should be "srinivasan". Like

Re: Facing problem with the FieldType of UniqueField

2008-02-14 Thread Ryan McKinley
I noticed this happened because the field type was "string". I then changed it to a custom text type and had specified only the whitespace tokenizer and lowercase filter. It worked. The users were able to search on the are there spaces in your unique key? Try using the KeywordTokenizer -- th

Re: Alpha numeric sort problem

2008-02-14 Thread Erick Erickson
I admit I know little about SOLR, but wouldn't an AlphaOnlySorter ignore the digits? Erick On Thu, Feb 14, 2008 at 3:51 AM, Mahesh Udupa <[EMAIL PROTECTED]> wrote: > Hello, > > I have following entry in my title list: > > Content1 > Content2 > Content3 > Content4 > Content5 > > If I try to Sort

Re: DisMaxHandler and plone advanced searches

2008-02-14 Thread Leonardo Santagada
On 14/02/2008, at 00:58, Mike Klaas wrote: On 13-Feb-08, at 6:11 PM, Leonardo Santagada wrote: On 13/02/2008, at 23:03, Mike Klaas wrote: Try using standardrequesthandler with the dismax query parser. How can I say to standardrequesthandler to apply each query string to a diferent field,

Facing problem with the FieldType of UniqueField

2008-02-14 Thread Rishabh Joshi
Hi, Initially, in my schema, I had my uniqueField's field type as "string" and everything was working fine. But, then the users of my application wanted to search on the unique field and entered values which were in a different case than what was indexed. They never got proper results, at times, n

Re: Filter Query and query score

2008-02-14 Thread tedonk03
Hi, I also have the same problem. My case is similar like this, but the user can select their preferences. I´ll use climbingrose´s example but add it a little bit. Doc1: [Title=Java; Location=Parramatta, NSW; latitude=x1; longitude=x2] Doc2: [Title=Java; Location=North Ryde, NSW; latitude=x3; l

SolrQuery.add

2008-02-14 Thread matthias walter
Hi, I'm having problems using SolrQuery.add(String, String). My Sample code is: SolrQuery anotherQuery = new SolrQuery(); anotherQuery.add("city", cmd.getCity()); I get the following error: null java.lang.NullPointerException at org.apache.solr.common.util.StrUtils.splitSmar

Alpha numeric sort problem

2008-02-14 Thread Mahesh Udupa
Hello, I have following entry in my title list: Content1 Content2 Content3 Content4 Content5 If I try to Sort it in ascending or descending order, I am getting same order. I am using following alphaOnlySort field and text. Please let me know if I miss anything here. Thanks in advance for looki