filtering search using regex

2008-04-11 Thread Abeba Tensai
hi, I have a question ... I need to be able to filter a search using a regex. I cannot used facet as the filtering is pretty complex (but easy to perform using a regex). For instance I have stored in the field ID the value 12G and I want to basically filter out all the results that are > 12 with G

Re: Phrase matching question

2008-04-11 Thread Vinci
Hi, Thank hossman. You get it right :) Seems the only solution is doing stopword removal in the query but not the indexit may be problem if the index is very large, but it is okay for me (also it allows user not killing the phrase "to be or not to be") hossman wrote: > > > I'm not sure i

Re: Meta: Mail quirk of solr-user

2008-04-11 Thread Chris Hostetter
: When I reply to a solr-user mail, the To: address is the sender instead of : solr-user. Didn't it used to be solr-user? The @lucene lists are all configured to set the "Reply-To" header so that it contains the list address, mail readers are responsible for respecting that header, some give y

Re: How to custom solr sort?

2008-04-11 Thread Chris Hostetter
: I have inherited a new class from the org.apache.solr.schema.StrField and : customed a new sort algorithm by implementing the SortComparatorSource : interface.Then to export the jar file to the solr lib directory, and : configure the schema.xml file.But when I test the new feature, It does't : w

Meta: Mail quirk of solr-user

2008-04-11 Thread Lance Norskog
Hi- When I reply to a solr-user mail, the To: address is the sender instead of solr-user. Didn't it used to be solr-user? Lance

RE: Facet Query

2008-04-11 Thread Norskog, Lance
Ok. I have a query that returns a set A. Doing a facet on field F gives me: All values of F in the index given as count(*) And these values can include 0. I add a facet query that returns B. The facet operation now returns count(*) on only the values of F that are found in query B

Re: Phrase matching question

2008-04-11 Thread Chris Hostetter
I'm not sure if i understand your question ... "unicode normalization" seems to be coming up in both your message and your example; plus your example suggests stop words are being removed, even though none of te words are removed from your original "field contains" string. I *think* what you

Re: java.io.FileNotFoundException?

2008-04-11 Thread Chris Hostetter
: I'm guessing this has to do with the spellchecker being in a component and how : I ripped the code out of the SpellCheckRequestHandler. If I hit the : SpellCheckRequestHandler normally : (http://localhost:8983/solr/core0/select?qt=spellchecker&q=pouted), two files : are opened after the first qu

Re: chaching and indexes in Solr

2008-04-11 Thread Mike Klaas
On 10-Apr-08, at 11:09 PM, Sagar Khetkade wrote: Hello, I have a hands on both Lucene and Solr. The difference betweenthese two search engines are explained to some extend, still havingsome query on these. I am in need to know 1. The difference between caching of Lucene and Solr index fi

Re: Facet Query

2008-04-11 Thread Lucas F. A. Teixeira
Exactly, It`s something like count(*) group by _your-field_ []s, Lucas   Lucas Frare de Avelar Teixeira Analista de Sistemas [EMAIL PROTECTED] Tel:  (11) 3522-7723 - Ramal: 4014

Re: Facet Query

2008-04-11 Thread Yonik Seeley
On Fri, Apr 11, 2008 at 4:32 PM, Lance Norskog <[EMAIL PROTECTED]> wrote: > What do facet queries do that is different from the regular query? What is > a use case where I would use a facet.query in addition to the regular query? It returns the number of documents that match the query AND the fa

Facet Query

2008-04-11 Thread Lance Norskog
What do facet queries do that is different from the regular query? What is a use case where I would use a facet.query in addition to the regular query? Thanks, Lance Norskog >From the wiki: http://wiki.apache.org/solr/SimpleFacetParameters#head-529bb9b985632b36cbd46 a37bde9753772e47cdd Arbitr

Re: capping term frequency?

2008-04-11 Thread Otis Gospodnetic
Hi, Probably by writing your own Similarity (Lucene codebase) and implementing the following method with capping: /** Implemented as sqrt(freq). */ public float tf(float freq) { return (float)Math.sqrt(freq); } Then put that custom Similarity in a jar in Solr's lib and specify your S

capping term frequency?

2008-04-11 Thread peter360
Hi, How do I cap the term frequency when computing relevancy scores in solr? The problem is if a keyword repeats many times in the same document, I don't want it to hijack the relevancy score. Can I tell solr to cap the term frequency at a certain threshold? thanks. -- View this message in con

Zappos's new Solr Site

2008-04-11 Thread Matthew Runo
Hello folks! First, the link: https://zeta.zappos.com (it's a very early open beta... we're just very proud of everyone's work and wanted to share it with you all) We've been working on a new site here at Zappos for about the last 7 months, with planning going back almost two years. We lo

Re: Return the result only field A or field B is non-zero?

2008-04-11 Thread Francisco Sanmartin
Define "exists" A. ) Is not declared. B. ) It is declared, but it has no value. (Empty). For B) you can use query= -(fieldA:["" TO *]) and it returns all the documents with fieldA empty (but declared in the doc) Pako Umar Shah wrote: hi, a related question: is there some way where we can spe

Re: Solr + Complex Legacy Schema -- Best Practices?

2008-04-11 Thread Shalin Shekhar Mangar
We had similar requirements in our project too. I won't go into details of our schema but we had five to six tables containing information on which we needed to search or show facets. The first step here is to get your schema right. Multivalued fields let you create extremely de-normalized documen

Re: Return the result only field A or field B is non-zero?

2008-04-11 Thread Umar Shah
hi, a related question: is there some way where we can specify action based on whether field A exists or not? -umar On Fri, Apr 11, 2008 at 8:27 AM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > If every document will definitely have a value for both fields, you can > do... >q