Dismax and worddelimiterfilter

2011-03-25 Thread David Yang
Hi, I am having some really strange issues matching "N61JQ-B2". If I had a field "N61JQ-B2", and I wanted to match "N61JQ", "N61JQB2", "N61JQ-B2" and "N61JQ B2" in dismax, what fieldtype should it have? My final fallback is to use ngrams but that would impose a pretty large overhead, since the

RE: Sort Stability With Date Boosting and Rounding

2011-02-22 Thread David Yang
One suggestion: use logarithms to compress the large time range into something easier to compare: 1/log(ms(now,date) -Original Message- From: Stephen Duncan Jr [mailto:stephen.dun...@gmail.com] Sent: Tuesday, February 22, 2011 6:03 PM To: solr-user@lucene.apache.org Subject: Sort Stabili

RE: DIH and updating specific record

2011-02-22 Thread David Yang
Chris Hostetter answered this just recently: http://wiki.apache.org/solr/DataImportHandler#Accessing_request_paramete rs My addition: Pass a parameter like command=delta-import&idz=31415 And access it via 'sql where id=${dataimporter.request.idz}' If the idz is a string you might need to prequote

Tokenizer that Protects Phrases

2011-02-22 Thread David Yang
Hi, I am trying to tokenize a string field of products. Two different products are: "camera", "security camera". What I would like is for "security camera" to be treated differently to "camera" - and only be displayed when the search is for "security camera", otherwise, the results should only

RE: Per field facet limit

2010-11-17 Thread David Yang
;s up to you to supply a query that will give the count you want, it won't use facet.limit or facet.mincount, those parameters apply to ordinary facetting where you get many values per field, to filter the values per field. Each facet.query only gives you one count already. David Yang wro

RE: Per field facet limit

2010-11-17 Thread David Yang
Sorry for the typo, I meant mincount, not limit... :p Cheers, David -Original Message- From: David Yang [mailto:dy...@nextjump.com] Sent: Wednesday, November 17, 2010 6:15 PM To: solr-user@lucene.apache.org Subject: RE: Per field facet limit Thanks! Is there any way to apply this to

RE: Per field facet limit

2010-11-17 Thread David Yang
facet parameters. f.name_of_field.facet.mincount, whatever. David Yang wrote: > Hi, > > > > The wiki on facet.limit > (http://wiki.apache.org/solr/SimpleFacetParameters#facet.limit) says > "This parameter can be specified on a per field basis to indicate a > separate li

Per field facet limit

2010-11-17 Thread David Yang
Hi, The wiki on facet.limit (http://wiki.apache.org/solr/SimpleFacetParameters#facet.limit) says "This parameter can be specified on a per field basis to indicate a separate limit for certain fields." But it is not specified how to specify a specific field. How do you do this? I tried

Shuffle results a little

2010-11-12 Thread David Yang
Hi, I am interested in using solr to return search results for products. Is there any feature which will allow the result to be spread/shuffled around a little? The problem is that there are lots of results for one brand, but there are lots of other brands a few pages later. Is it possible to s

DataImportHandler with multiline SQL

2010-09-16 Thread David Yang
Hi I am using the DIH to retrieve data, and as part of the process, I wanted to create a temporary table and then import data from that. I have played around a little with DIH and it seems like for a query like: "select x; select y;" you can have select y to return no results and do random stuf

RE: Autocomplete with Filter Query

2010-09-10 Thread David Yang
eperated word as they type it, this won't do THAT either. Trying to get all those things to work becomes even more complicated -- especially with the requirement that you want to be able to apply the 'fq's from your current search context to the auto-complete. I haven't entirely

Autocomplete with Filter Query

2010-09-10 Thread David Yang
Hi, Is there any way to provide autocomplete while filtering results? Suppose I had a bunch of people and each person has multiple occupations. When I select 'Assistant' in a filter box, it would be nice if autocomplete only provides assistant names, instead of all names. The other issue is tha

RE: Delta Import with something other than Date

2010-09-08 Thread David Yang
. You can't use SQL to query Solr though. I'm not sure what you're really asking? Jonathan David Yang wrote: > Hi, > > I have a table that I want to index, and the table has no datetime > stamp. However, the table is append only so the primary key can only go > up.

Delta Import with something other than Date

2010-09-08 Thread David Yang
Hi, I have a table that I want to index, and the table has no datetime stamp. However, the table is append only so the primary key can only go up. Is it possible to store the last primary key, and use some delta query="select id where id>${last_id_value}" Cheers, David

How to use TermsComponent when I need a filter

2010-09-08 Thread David Yang
Hi, I have a solr index, which for simplicity is just a list of names, and a list of associations. (either a multivalue field e.g. {A1, A2, A3, A6} or a string concatenation list e.g. "A1 A2 A3 A6") I want to be able to provide autocomplete but with a specific association. E.g. Names beginn

How to use TermsComponent when I need a filter

2010-09-07 Thread David Yang
Hi, I have a solr index, which for simplicity is just a list of names, and a list of associations. (either a multivalue field e.g. {A1, A2, A3, A6} or a string concatenation list e.g. "A1 A2 A3 A6") I want to be able to provide autocomplete but with a specific association. E.g. Names beginning

A few query issues with solr

2010-08-26 Thread David Yang
Hi, I'm new to using Solr, and I have started an index with it and it works great. I have encountered a few minor issues that I currently solve by modifying the query beforehand - however I feel like there is a much more configuration oriented and Solr-correct way of achieving. Current manu