Re: DataImportHandler Template Transformer

2009-05-18 Thread Fergus McMenemie
>It took me a while to understand that to use the Template Transfomer >(http://lucene.apache.org/solr/api/org/apache/solr/handler/dataimport/TemplateTransformer.html), >all building variable names (e.g. ${e.firstName} ${e.lastName} etc). can not >contain null values. I hope the parser can do a bett

Re: Simplest way of registering new solr core!

2009-05-18 Thread KK
Thanks. I'm still finding it difficult to move from unicore to multicore. What I understood so far is that we've to put a solr.xml file in $solr.home and this is the config file loaded first, if this is not available then solr looks for solrconfig.xml under coreX directory withing multicore directo

Re: Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread Yatir
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters Noble Paul നോബിള്‍ नोब्ळ्-2 wrote: > > I am writing a solr filter > > what is a solr filter? > > On Mon, May 18, 2009 at 2:18 PM, Yatir wrote: >> >> Hi, >> >> I am writing a solr filter that needs the DocFreq of each Token in order

Re: Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread Yatir
Thanks for Hijacking my thread! lerosky wrote: > > Does anyone know if unsubscibe works for this mail list. I don't seem > to be able to unsubscribe > > > On May 18, 2009, at 9:12 AM, Noble Paul നോബിള്‍ नो > ब्ळ् wrote: > >> I am writing a solr filter >> >> what is a solr filter? >> >>

Re: Sole core naming convention for multicores

2009-05-18 Thread KK
I think I should also do the same way. Thanks Brain for pointing me to this idea. As per my db design I don't have any single key as PK, I'm thinking of putting a new field called [say] coreId and make it PK with auto-increment option[I'm using MySQL, btw], and this will solve the problem. I think

Re: DataImportHandler Template Transformer

2009-05-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Tue, May 19, 2009 at 9:10 AM, Yao Ge wrote: > > It took me a while to understand that to use the Template Transfomer > (http://lucene.apache.org/solr/api/org/apache/solr/handler/dataimport/TemplateTransformer.html), > all building variable names (e.g. ${e.firstName} ${e.lastName} etc). can not

DataImportHandler Template Transformer

2009-05-18 Thread Yao Ge
It took me a while to understand that to use the Template Transfomer (http://lucene.apache.org/solr/api/org/apache/solr/handler/dataimport/TemplateTransformer.html), all building variable names (e.g. ${e.firstName} ${e.lastName} etc). can not contain null values. I hope the parser can do a better

Re: Incorrect sort with with function query in query parameters

2009-05-18 Thread Yonik Seeley
This was fixed April 24th https://issues.apache.org/jira/browse/SOLR-1124 explained further in https://issues.apache.org/jira/browse/SOLR- -Yonik http://www.lucidimagination.com On Thu, Mar 26, 2009 at 10:24 PM, Asif Rahman wrote: > > Hi all, > > I'm having an issue with the order of my re

Re: Query Boost Functions

2009-05-18 Thread Yonik Seeley
On Mon, May 18, 2009 at 11:12 AM, Koji Sekiguchi wrote: > Yao Ge wrote: >> >> I have a field named "last-modified" that I like to use in bf (Boot >> Functions) parameter: >> recip(rord(last-modified),1,1000,1000) in DisMaxRequestHander. >> However the Solr query parser complain about the syntax of

Re: Howto? Applying a filter across schema fileds using state information

2009-05-18 Thread Bryan Talbot
I needed to do something like this recently as well. I needed to copy a date field (with full precision to the millisecond) to a string field of just MMDD. I didn't see a way to do it in solr core. I ended up doing it in the Data Import Handler during import. I'd rather have code li

Re: Incorrect sort with with function query in query parameters

2009-05-18 Thread Asif Rahman
I have been intending to although I have been dragging my feet on it. I've never opened a bug before so I'm not sure of the protocol. If you don't mind, it would be great if you could send me a pm and point me in the right direction. Thanks, Asif On Mon, May 18, 2009 at 7:30 PM, Ensdorf Ken

Re: query regarding Indexing xml files -db-data-config.xml

2009-05-18 Thread jayakeerthi s
Hi Noble, Thanks for the reply, As advised I have changed the db-data-config.xml as below. But still the Indexing completed. Added/Updated: 0 documents. Deleted 0 documents. Got error as below when baseDir is removed INFO:

Re: UK Solr users meeting?

2009-05-18 Thread hbi dev
+1 vote here. We are based in London. Regards Waseem On Mon, May 18, 2009 at 11:42 AM, Toby Cole wrote: > I know of a few people who'd be interested, we've got quite a few projects > using Solr down here in Brighton. > > > On 14 May 2009, at 10:41, Fergus McMenemie wrote: > > I was wondering if

Re: multicore for 20k users?

2009-05-18 Thread Ryan McKinley
since there is so little overlap, I would look at a core for each user... However, to manage 20K cores, you will not want to use the off the shelf core management implementation to maintain these cores. Consider overriding SolrDispatchFilter to initialize a CoreContainer that you manage.

Re: Solr Shard - Strange results

2009-05-18 Thread CB-PO
I'm not quite sure how that would make a difference... From my most recent testing, it seems that the problem is related to the Shards element adding "ids=[...]" to one of the queries. However, I will give it a try. Yao Ge wrote: > > Maybe you want to try with docNumber field type as "string" a

RE: Incorrect sort with with function query in query parameters

2009-05-18 Thread Ensdorf Ken
> > A Unit test would be ideal, but even if you can just provide a list of > steps (ie: using this solrconfig+schema, index these docs, then update > this one doc, then execute this search) it can help people track things > down. > > Please open a bug and attach as much detail as you can there. > >

Re: Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread Erik Hatcher
On May 18, 2009, at 10:16 AM, A. Banji Oyebisi wrote: Does anyone know if unsubscibe works for this mail list. I don't seem to be able to unsubscribe It should work for you to unsubscribe by sending a mail to solr-user-unsubscr...@lucene.apache.org from your subscribed address, and you will

Re: Indexing issue in DIH - not all records are Indexed

2009-05-18 Thread jayakeerthi s
Hi Noble, Many thanks for the reply Yes there is a UniqueKey in the Schema which is the ProductID. I also tried PROD_ID. But no luck same only one document seen after querying *:* I have attached the Schema.xml used for your reference,please advise. Thanks and regards, Jay 2009/5/16 Noble Paul

Re: Solr Shard - Strange results

2009-05-18 Thread Yao Ge
Maybe you want to try with docNumber field type as "string" and see it would make a difference. CB-PO wrote: > > I'm not quite sure what logs you are talking about, but in the > tomcat/logs/catalina.out logs, i found the following [note, i can't > copy/paste, so i am typing up a summary]: > >

Re: Query with AND|OR operator with Dismaxrequest

2009-05-18 Thread Otis Gospodnetic
Prerna, Yes, DisMax doesn't take in queries with Boolean operators. But I believe there is a patch in JIRA that makes that possible. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: prerna07 > To: solr-user@lucene.apache.org > Sent: Mond

Re: Solr Shard - Strange results

2009-05-18 Thread CB-PO
I'm not quite sure what logs you are talking about, but in the tomcat/logs/catalina.out logs, i found the following [note, i can't copy/paste, so i am typing up a summary]: I execute command: localhost:8080/bravo/select?q=fred&rows=102&start=0&shards=localhost:8080/alpha,localhost:8080/bravo I

Re: How to gather fields when faceting results ?

2009-05-18 Thread Avlesh Singh
How about having a single "facetable" field with values parentId_parentTitle? Get rid of the parentId and the underscore as a post process. Cheers Avlesh On Mon, May 18, 2009 at 7:13 PM, Pierre-Yves LANDRON wrote: > > Hello, > > Using faceting in my results, I would like to "link" two fields : >

Re: Date field

2009-05-18 Thread Jack Godwin
My bad it was an id10t error. On Fri, May 15, 2009 at 8:21 PM, Otis Gospodnetic < otis_gospodne...@yahoo.com> wrote: > > Jack, > > > Which bug are you referring to? Last time I played with function queries > with date fields things worked as expected. If there is/was a known bug, it > must be i

Re: multicore for 20k users?

2009-05-18 Thread Chris Cornell
2009/5/17 Noble Paul നോബിള്‍ नोब्ळ् : > A few questions, > 1) what is the frequency of inserts? A few per day per user at MOST. > 2) how many cores need to be up and running at any given point > That depends on the people. I would love to be able to tie it to their webapp session, maybe 100 at

Re: Query Boost Functions

2009-05-18 Thread Koji Sekiguchi
Yao Ge wrote: I have a field named "last-modified" that I like to use in bf (Boot Functions) parameter: recip(rord(last-modified),1,1000,1000) in DisMaxRequestHander. However the Solr query parser complain about the syntax of the formula. I think it is related with hyphen in the field name. I hav

Re: Solr Document Sort

2009-05-18 Thread Brian Mansell
Gurjot - Take a look at the Solr Relevancy Cookbook http://wiki.apache.org/solr/SolrRelevancyCookbook - It provides some good guidelines for boosting term ranking. cheers, --bemansell On Mon, May 18, 2009 at 7:29 AM, Gurjot Singh wrote: > Hi, > In the Solr schema file I have a integer type fiel

Re: Sole core naming convention for multicores

2009-05-18 Thread Brian Mansell
KK - In my experience with multi-core, I've found that using the user record's integer PK for each user core works well by still allowing the user to update their email addresses / usernames over time. cheers, --bemansell On May 17, 2009 10:39 PM, "KK" wrote: Thank you Otis. One silly questi

Solr Document Sort

2009-05-18 Thread Gurjot Singh
Hi, In the Solr schema file I have a integer type field named as 'ContentType' as follows The values of this field can be one of the following: 1(for News) , 2(for Reviews), 3(for Opinion), 4(for Blogs) I have a scenario in which when a user does a search the result should be sorted by Best ma

Re: Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread A. Banji Oyebisi
Does anyone know if unsubscibe works for this mail list. I don't seem to be able to unsubscribe On May 18, 2009, at 9:12 AM, Noble Paul നോബിള്‍ नो ब्ळ् wrote: I am writing a solr filter what is a solr filter? On Mon, May 18, 2009 at 2:18 PM, Yatir wrote: Hi, I am writing a solr fil

Re: Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
I am writing a solr filter what is a solr filter? On Mon, May 18, 2009 at 2:18 PM, Yatir wrote: > > Hi, > > I am writing a solr filter that needs the DocFreq of each Token in order to > decide what to do with it. > What is the easiest way to obtain this information from within the filter > code

How to gather fields when faceting results ?

2009-05-18 Thread Pierre-Yves LANDRON
Hello, Using faceting in my results, I would like to "link" two fields : For example, a parentID field should help me retrieve all the different parents ids from a query, but it can't be used for displaying the facets, as it doesn't mean anything for a user. A second field, parentTitle, in my

Re: How to update only few fields in a document

2009-05-18 Thread Vincent Pérès
Hello, I went through the ticket but it seems that nothing is envisaged until version 1.5 Thanks for your answer !! Vincent Otis Gospodnetic wrote: > > > Vincent, > > Unfortunately things haven't changed yet. If all your fields are stored, > have a look at SOLR-139. > > > Otis -- > Sem

Query Boost Functions

2009-05-18 Thread Yao Ge
I have a field named "last-modified" that I like to use in bf (Boot Functions) parameter: recip(rord(last-modified),1,1000,1000) in DisMaxRequestHander. However the Solr query parser complain about the syntax of the formula. I think it is related with hyphen in the field name. I have tried to add

Re: Simplest way of registering new solr core!

2009-05-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Mon, May 18, 2009 at 4:06 PM, KK wrote: > Do we have to extend the CoreAdminHandler class and use some methods therein > to register a new core? no. th create command will do that > Thanks in appreciation. > > --KK > > On Mon, May 18, 2009 at 12:48 PM, KK wrote: > >> Hi, >> What is the simples

Re: UK Solr users meeting?

2009-05-18 Thread Toby Cole
I know of a few people who'd be interested, we've got quite a few projects using Solr down here in Brighton. On 14 May 2009, at 10:41, Fergus McMenemie wrote: I was wondering if there is an interest in a UK (South East) solr user group meeting Please let me know if you are interested. I a

Re: Simplest way of registering new solr core!

2009-05-18 Thread KK
Do we have to extend the CoreAdminHandler class and use some methods therein to register a new core? Thanks in appreciation. --KK On Mon, May 18, 2009 at 12:48 PM, KK wrote: > Hi, > What is the simplest way of registering a new solr core? Do we have to use > some standard APIs for this, or maki

Query with AND|OR operator with Dismaxrequest

2009-05-18 Thread prerna07
Hi, I am not getting correct results with a Query which has multiple AND | OR operator. Query Format q=((A AND B) OR (C OR D) OR E) ?q=((intAgeFrom_product_i:[0+TO+3]+AND+intAgeTo_product_i:[3+TO+*])+OR+(intAgeFrom_product_i:[0+TO+3]+AND+intAgeTo_product_i:[0+TO+3])+OR+(ageFrom_product_s:Adul

Howto? Obtain the IndexReader from within a solr filter

2009-05-18 Thread Yatir
Hi, I am writing a solr filter that needs the DocFreq of each Token in order to decide what to do with it. What is the easiest way to obtain this information from within the filter code ? thanks, Yatir -- View this message in context: http://www.nabble.com/Howto--Obtain-the-IndexReader-from-wi

Howto? Applying a filter across schema fileds using state information

2009-05-18 Thread Yatir
Hi, I need to write a filter that extracts information from the content of one filed (say the Body field) and then applies some transformation based on this content, to a *different* filed (say: the Title field) is this possible ? Example: I will find certain keywords in the body and then locate

Re: Simple search returns no documents

2009-05-18 Thread Jeffrey Gelens
Hi Otis, That seems to be the problem. The term positions for the index are 1 and 3. While the positions for the query are 1 and 2. The StopFilterTokenizer was set with setEnablePositionIncrementsDefault="true" for the index analyzer while it was not enabled for the query analyzer. Thanks!

Simplest way of registering new solr core!

2009-05-18 Thread KK
Hi, What is the simplest way of registering a new solr core? Do we have to use some standard APIs for this, or making a Ajax get call to http://localhost:8983/solr/admin/cores with proper request parameter lik these, [?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_f