Re: Case insensitive search and original string

2009-08-27 Thread R. Tan
Hi Ahmet, Yes, for display purpose. Okay, so I don't have to copy fields then. Thank you very much. R On Fri, Aug 28, 2009 at 4:57 AM, AHMET ARSLAN wrote: > > > --- On Thu, 8/27/09, Rihaed Tan wrote: > > > From: Rihaed Tan > > Subject: Case insensitive search and original string > > To: sol

Return 2 fields per facet.. name and id, for example? / facet value search

2009-09-02 Thread R. Tan
Sorry for the duplicate post, if ever, can anyone share their experience on holding facet heading/value IDs in Solr? On Fri, Aug 28, 2009 at 3:27 AM, Rihaed Tan wrote: > Hi, > > I have a similar requirement to Matthew (from his post 2 years ago). Is > this still the way to go in storing both the

Schema for group/child entity setup

2009-09-02 Thread R. Tan
Hi Solrers, I would like to get your opinion on how to best approach a search requirement that I have. The scenario is I have a set of business listings that may be group into one parent business (such as 7-eleven having several locations). On the results page, I only want 7-eleven to show up once

Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-02 Thread R. Tan
I think this is what I'm looking for. What is the status of this patch? On Thu, Sep 3, 2009 at 12:00 PM, R. Tan wrote: > Hi Solrers, > I would like to get your opinion on how to best approach a search > requirement that I have. The scenario is I have a set of business listings

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-03 Thread R. Tan
extend this support so in addition to collapsing the documents, extra > information will be returned for the collapsed documents (see the discussion > on the issue page). > > Uri > > > R. Tan wrote: > >> I think this is what I'm looking for. What is the stat

Re: Schema for group/child entity setup

2009-09-04 Thread R. Tan
; or > any other way depending on the attributes. > > 2009/9/3 R. Tan > > > Hi Solrers, > > I would like to get your opinion on how to best approach a search > > requirement that I have. The scenario is I have a set of business > listings > > that may be group in

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-04 Thread R. Tan
not* 1.3 compatible (I think they're also depending on > some changes in lucene which are not available for solr 1.3). I guess you'll > have to try some of the old patches, but I'm not sure about their stability. > > cheers, > Uri > > > R. Tan wrote: > >&

Re: Return 2 fields per facet.. name and id, for example? / facet value search

2009-09-04 Thread R. Tan
Thanks. I guess it will have to be the workaround then. On Thu, Sep 3, 2009 at 3:34 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Fri, Aug 28, 2009 at 12:57 AM, Rihaed Tan > wrote: > > > Hi, > > > > I have a similar requirement to Matthew (from his post 2 years ago). Is > > thi

Re: Schema for group/child entity setup

2009-09-04 Thread R. Tan
. That ways, when no filter is applied, you can facet on the > "locations" field to get all the locations. In all other scenarios when a > filter on field "foo" is applied, faceting on "location_foo" will give you > the desired results. > > Cheers > Av

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-04 Thread R. Tan
Anybody using it on public site? Would love to see some live examples. On Sat, Sep 5, 2009 at 12:50 AM, R. Tan wrote: > Okay. Thanks for giving an insight on how it works in general. Without > trying it myself, are the field values for the collapsed ones also part of > the results dat

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-05 Thread R. Tan
whether to use 1.3 or 1.4-dev, I would > go for the later. 1.4 is supposed to be released in the upcoming week or two > and it bring loads of bug fixes, enhancements and extra functionality. But > again, this is my personal suggestion. > > > cheers, > Uri > > R. Tan wrote:

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-05 Thread R. Tan
ged since then. We're currently using this patch on another project, but > it's not live yet. > > > Uri > > R. Tan wrote: > >> Thanks Uri. Your personal suggestion is appreciated and I think I'll >> follow >> your advice. We're still early i

Re: Field Collapsing (was Re: Schema for group/child entity setup)

2009-09-09 Thread R. Tan
w, you get all field values by default? >> > Right now, no field values are returned for the collapsed documents. The > patch which will be committed soon will add this functionality. > > > R. Tan wrote: > >> Great. Nice site and very similar to my requirements. >>

"Only one usage of each socket address" error

2009-09-14 Thread R. Tan
Hi guys, I'm getting an exception while in the middle of a batch indexing job. Can anybody help me figure this out? Error: Only one usage of each socket address (protocol/network address/port) is normally permitted 127.0.0.1:8080 Solr is 1.4 on Tomcat. Big thanks. Rihaed

TermsComponent or auto-suggest with filter

2009-10-06 Thread R. Tan
Hello, What's the best way to get auto-suggested terms/keywords that is filtered by one or more fields? TermsComponent should have been the solution but filters are not supported. Thanks, Rihaed

Re: TermsComponent or auto-suggest with filter

2009-10-06 Thread R. Tan
st:8983/solr/select/?q=user_query: > ”i”&wt=json&fl=user_query&indent=on&echoParams=none&rows=10&sort=count > desc&fq=yourField:yourQuery&fq=anotherField:anotherQuery > > -Jay > http://www.lucidimagination.com > > > > > On Tue, Oct 6, 2009

SpellCheck with filter/conditions

2009-10-07 Thread R. Tan
Sorry, newbie here, figured it out. How do you get spelling suggestions on a specific resultset, filtered by a certain facet for example? On Wed, Oct 7, 2009 at 8:43 AM, R. Tan wrote: > Nice. In comparison, how do you do it with faceting? > >> "Two other approaches are

Re: TermsComponent or auto-suggest with filter

2009-10-07 Thread R. Tan
ay > http://www.lucidimagination.com > > > On Tue, Oct 6, 2009 at 5:43 PM, R. Tan wrote: > > > Nice. In comparison, how do you do it with faceting? > > > > > "Two other approaches are to use either the TermsComponent (new in Solr > > > 1.4) or faceting.&q

Scoring for specific field queries

2009-10-07 Thread R. Tan
Hi, How can I get wildcard search (e.g. cha*) to score documents based on the position of the keyword in a field? Closer (to the start) means higher score. For example, I have multiple documents with titles containing the word "champion". Some of the document titles start with the word "champion"

Re: Scoring for specific field queries

2009-10-07 Thread R. Tan
- > > 1. Create a KeywordTokenized field with n-gram filter. > 2. Create a Whitespace tokenized field with n-gram flter. > 3. Search on both the fields, boost matches for #1 over #2. > > Hope this helps. > > Cheers > Avlesh > > On Thu, Oct 8, 2009 at 10:30 AM,

Re: Scoring for specific field queries

2009-10-07 Thread R. Tan
mes. > 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 first. > > Regards, > Sandeep >

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
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 h

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
, q=*:*&fq=autoCompleteHelper:cha+autoCompleteHelper2:cha&qf=autoCompleteHelper^10.0+autoCompleteHelper2^1.0 What should I tweak from the above config and query? Thanks, Rih On Thu, Oct 8, 2009 at 4:38 PM, R. Tan wrote: > I will have to pass on this and try your suggestion first

Re: Scoring for specific field queries

2009-10-08 Thread R. Tan
now, but on the face of it your field definitions > look right. > > This is what I asked for - > q=(autoComplete2:cha^10 autoComplete:cha) > > Lemme know if this does not work for you. > > Cheers > Avlesh > > On Thu, Oct 8, 2009 at 4:58 PM, R. Tan wrote: > &g

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
at 9:40 AM, Avlesh Singh wrote: > Use the field analysis tool to see how the data is being analyzed in both > the fields. > > Cheers > Avlesh > > On Fri, Oct 9, 2009 at 12:56 AM, R. Tan wrote: > > > Hmm... I don't quite get the desired results. Those starting w

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
The problem is, I'm getting equal scores for this: Query: q=(autoCompleteHelper2:caf^10.0 autoCompleteHelper:caf) Partial Result: 0.7821733 Bikes Café 0.7821733 Cafe Feliy I'm using the standard request handler with this. Thanks, Rih On Fri, Oct 9, 2009 at 3:02 PM, R.

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
Yup, it is. Both are copied from another field called name. On Fri, Oct 9, 2009 at 3:15 PM, Avlesh Singh wrote: > Lame question, but are you populating data in the autoCompleteHelper2 > field? > > Cheers > Avlesh > > On Fri, Oct 9, 2009 at 12:36 PM, R. Tan wrote: >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
leteHelper2:caf to see you get results? > > Cheers > Avlesh > > On Fri, Oct 9, 2009 at 12:53 PM, R. Tan wrote: > > > Yup, it is. Both are copied from another field called name. > > > > On Fri, Oct 9, 2009 at 3:15 PM, Avlesh Singh wrote: > > > > >

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
; > > > > > > > > > > minGramSize="1" /> > > > > > pattern="([^a-z0-9])" replacement="" replace="all" /> > p

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
:) > > Also, do you get results such as " formula"? > > > The "autocomplete" field would definitely not match this query, but the > "tokenized autocomplete" would. > Give it a shot, it should work as you expect it to. > > Cheers > Avlesh

Re: Scoring for specific field queries

2009-10-09 Thread R. Tan
I ended up with the same set of results earlier but I don't results such as "the champion", I think because of the EdgeNGram filter. With NGram, I'm back to the same problem: Result for q=ca 0.8717008 Blu Jazz Cafe 0.8717008 Café in the Pond On Fri, Oct 9, 2009 at 4:

Re: Scoring for specific field queries

2009-10-12 Thread R. Tan
Avlesh, I got it, finally, by doing an OR between the two fields, one with an exact match keyword and the other is grouped. q=suggestion:"formula xxx" OR tokenized_suggestion:(formula ) Thanks for all your help! Rih On Fri, Oct 9, 2009 at 4:26 PM, R. Tan wrote: > I ende

Letters with accent in query

2009-10-12 Thread R. Tan
Hi, I'm querying with an accented keyword such as "café" but the debug info shows that it is only searching for "caf". I'm using the ISOLatin1Accent filter as well. Query: http://localhost:8983/solr/select?q=%E9&debugQuery=true Params return shows this: true What am I missing here? Rih

Re: Letters with accent in query

2009-10-14 Thread R. Tan
Correct. Apparently, Firefox is the only browser that translate it é to %E9. On Wed, Oct 14, 2009 at 3:06 AM, Chris Hostetter wrote: > > : I'm querying with an accented keyword such as "café" but the debug info > : shows that it is only searching for "caf". I'm using the ISOLatin1Accent >

Collapse with multiple fields

2009-10-22 Thread R. Tan
Hi, Is it possible to collapse the results from multiple fields? Rih

Re: Collapse with multiple fields

2009-10-23 Thread R. Tan
ther in another field while indexing and then collapse on that > field. > > Martijn > > 2009/10/23 Thijs : > > I haven't had time to actually ask this on the list my self but seeing > this, > > I just had to reply. I was wondering this myself. > > > >