How to achieve combination of features grouping, scoring...

2009-01-13 Thread Norbert Hartl
Hi, I spent some time on solr in order to figure out what it can do. I sill have some problems finding the right way to do my search. I have a bunch of heterogenous objects that I want to search. All of these objects belong to an owner. When a search is issued I like not only to find the

Re: Issue in Facet on date field

2009-01-13 Thread Marc Sturlese
Hey, That's because Solr just looks for one start,end and gap params in solrconfig.xml. It just allows you to do datefaceting for differents fields but just in one range period. I was in the same situation as you are, what I did was modify the function getFacetDateCounts() from

Re: Issue in Facet on date field

2009-01-13 Thread prerna07
There can be two other options: 1) To make 2 solr queries to get two facets 2) Use copy field of schema.xml. Thanks, Prerna Marc Sturlese wrote: Hey, That's because Solr just looks for one start,end and gap params in solrconfig.xml. It just allows you to do datefaceting for differents

Re: Getting only fields that match

2009-01-13 Thread Norbert Hartl
On Sun, 2009-01-11 at 17:07 +0530, Shalin Shekhar Mangar wrote: On Sun, Jan 11, 2009 at 4:02 PM, Norbert Hartl norb...@hartl.name wrote: I like the search result to include only the fields that matched the search. Is this possible? I only saw the field spec where you can have a certain

solrj delete by Id problem

2009-01-13 Thread Parisa
I have a problem with solrj delete By Id . If I search a keyword and it has more than 1 result no (for example 7) then I delete on of the resulted doc with solrj (server.deleteById ) , I search this keyword again the result no is zero . and it 's not correct because it should be 6 . It should

RE: Query regarding Spelling Suggestions

2009-01-13 Thread Deshpande, Mukta
Hi Grant, My spellcheck is now working fine with the following configuration: searchComponent name=spellcheck class=solr.SpellCheckComponent lst name=spellchecker str name=fieldTypeword/str str name=classnamesolr.IndexBasedSpellChecker/str str name=fieldword/str str

Re: solrj delete by Id problem

2009-01-13 Thread Shalin Shekhar Mangar
Did you call commit after the delete? On Tue, Jan 13, 2009 at 4:12 PM, Parisa paris...@gmail.com wrote: I have a problem with solrj delete By Id . If I search a keyword and it has more than 1 result no (for example 7) then I delete on of the resulted doc with solrj (server.deleteById ) , I

Re: Query regarding Spelling Suggestions

2009-01-13 Thread Shalin Shekhar Mangar
On Tue, Jan 13, 2009 at 5:16 PM, Deshpande, Mukta mudes...@ptc.com wrote: I have following question / observation : (just to ensure that my configurations are correct) The lucene-index (dictionary) syn_index is already an index so do we have to specify the spellcheckIndexDir again? (If I

Re: solrj delete by Id problem

2009-01-13 Thread Parisa
Shalin Shekhar Mangar wrote: Did you call commit after the delete? Ofcourse I call commit and I test both commit(false,false) and commit(true,true) in both cases the result is the same. On Tue, Jan 13, 2009 at 4:12 PM, Parisa paris...@gmail.com wrote: I have a problem with solrj

Re: DataImportHandler: UTF-8 and Mysql

2009-01-13 Thread Shalin Shekhar Mangar
On Mon, Jan 12, 2009 at 3:48 PM, gwk g...@eyefi.nl wrote: 1. Posting UTF-8 data through the example post-script works and I get the proper results back when I query using the admin page. However, data imported through the DataImportHandler from a MySQL database (the database

RE: Query regarding Spelling Suggestions

2009-01-13 Thread Deshpande, Mukta
Thanks all for the help and information. Best Regards, ~Mukta -Original Message- From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] Sent: Tuesday, January 13, 2009 6:50 PM To: solr-user@lucene.apache.org Subject: Re: Query regarding Spelling Suggestions On Tue, Jan 13, 2009 at

Re: Clustering Carrot2 + Solr

2009-01-13 Thread Grant Ingersoll
I've updated the patch for trunk. I _believe_ it should now work. -Grant On Jan 8, 2009, at 9:32 AM, Jean-Philip EIMECKE wrote: Thanks for considering my problem Cheers, Jean-Philip Eimecke

What do we mean by Searcher?

2009-01-13 Thread Manupriya
Hi, I am somehow new to Solr. While reading through documents/resources, I have come across 'Searcher' term many times. I am able to roughly undestand, that whenever we fire any query, we are actually invoking a searcher. This searcher searches through the index and returns results. But I am

Re: Clustering Carrot2 + Solr

2009-01-13 Thread Jean-Philip EIMECKE
Thank you so much Grant Cheers -- Jean-Philip Eimecke jpeime...@gmail.com

prefetching question

2009-01-13 Thread Jae Joo
Hi, We do have 16 millions of company name and would like to find the way for prefetching by using Solr. Does anyone have experience and/or suggestions? Thanks, Jae Joo

Re: DataImportHandler: UTF-8 and Mysql

2009-01-13 Thread gwk
Shalin Shekhar Mangar wrote: On Mon, Jan 12, 2009 at 3:48 PM, gwk g...@eyefi.nl wrote: 1. Posting UTF-8 data through the example post-script works and I get the proper results back when I query using the admin page. However, data imported through the DataImportHandler from a MySQL

Facet Paging

2009-01-13 Thread gwk
Hi, With the faceting parameters there is an option to add support for paging through a large number of facets. But to create proper paging it would be helpful if the response contains the total number of facets (the amount of facets if facet.limit was set to a negative value) similar to an

getting DIH to read my XML files

2009-01-13 Thread Fergus McMenemie
Hello, I am trying to use DIH with FileListEntityProcessor to to walk the disk and read XML documents. I have a dataConfig.xml as follows:- dataConfig document entity name=jcurrent processor=FileListEntityProcessor fileName=.*xml

Re: getting DIH to read my XML files

2009-01-13 Thread Fergus McMenemie
Shalin, thanks for the speedy response. Which version of Solr are you using? Solr Implementation Version: nightly exported - yonik - 2008-11-13 08:05:48 I think there should be a dataSource=null in the child entity as well. OK that had an effect; I now get:- Jan 13, 2009 4:42:28 PM

Re: What do we mean by Searcher?

2009-01-13 Thread Otis Gospodnetic
Manu, If you truly want to get a better feeling for the notion of a Searcher, my advice is to play with Lucene a little bit first. Do you have a copy of Lucene in Action? You get get a cheaper version online on manning.com/hatcher2 if you want and quickly read a bit about Searcher in one of

Re: prefetching question

2009-01-13 Thread Chris Harris
Maybe it's just me, but I'm not sure what you mean by prefetching. (I don't even know if you're talking about an indexing-time activity or a query-time activity.) My guess is that you'll get a more helpful reply if you can make your question more specific. Cheers, Chris On Tue, Jan 13, 2009 at

RE: Commiting index while time-consuming query is running

2009-01-13 Thread Feak, Todd
I believe that when you commit, a new IndexReader is created, which is warmed, etc. New incoming queries will be sent to this new IndexReader. Once all previously existing queries have been answered, the old IndexReader will shut down. The commit doesn't wait for the query to finish, but it

Re: non fix highlight snippet size

2009-01-13 Thread Mike Klaas
On 13-Jan-09, at 12:48 AM, Marc Sturlese wrote: Hey there, I need a rule in my highlights that sets for example, the snippet size to 400 in case there's just one snippet, 225 in case two snippeds are found and 125 in case 3 or more snippets are found. Is there any way to do that via

Indexing the same data in many records

2009-01-13 Thread philmccarthy
Hi, I'd like to use Solr to index some webserver logs, in order to allow easy ad-hoc querying and analysis. Each Solr Document will represent a single request to the webserver, with fields for time, request URL, referring URL etc. I'm also planning to fetch the page source of each referring

faceted search returning multiple values for same field

2009-01-13 Thread Deo, Shantanu
Hi, I am using solr for indexing some product data, and wanted to use the faceted search. My indexed field (mfg) sometimes contains two words sony erricson for example. When I get the facets on the mfg, SOLR return sony and erricson as separate hits. There are also some facets that show up

Re: faceted search returning multiple values for same field

2009-01-13 Thread Shalin Shekhar Mangar
On Wed, Jan 14, 2009 at 8:45 AM, Deo, Shantanu sd1...@att.com wrote: I have tried playing around with defining the fieldtype using the following analyzers: fieldType name=mfgTextTight class=solr.TextField positionIncrementGap=100 analyzer tokenizer class=solr.LetterTokenizerFactory/

Re: faceted search returning multiple values for same field

2009-01-13 Thread Otis Gospodnetic
Shantanu, It sounds like all you have to do is switch to a field type that doesn't tokenize your mfg field. Try field type string. You'll need to reindex once you make this change. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Deo,

Re: Indexing the same data in many records

2009-01-13 Thread Otis Gospodnetic
Phil, From what you described so far, I don't see any red flags. I would pay attention to reading those timestamps (covered on the Wiki and ML archives), that's all. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: philmccarthy

Re: Custom Transformer to handle Timestamp

2009-01-13 Thread con
Thanks Shalin That really helped :handshake: I have created a plugin class and now things are working fine Thanks Again Regards Con Shalin Shekhar Mangar wrote: On Tue, Jan 13, 2009 at 12:53 AM, con convo...@gmail.com wrote: Hi all I am using solr to index data from my database.

CommonsHttpSolrServer in multithreaded env

2009-01-13 Thread Gargate, Siddharth
Hi all, Is it safe to use a single instance of CommonsHttpSolrServer object in multithreaded environment? I am having multiple threads that are accessing single CommonsHttpSolrServer static object but sometimes the application gets blocked. Following is the stacktrace printed for all threads

Searchable and Non Searchable Fields

2009-01-13 Thread con
Hi All I am using dataimporthandler to index values from oracle db. My sample rows are like: 1) FirstName- George,LastName- Bush, Country- US 2) FirstName- Georgeon, LastName- Washington, Country- US 3) FirstName- Tony, LastName- George, Country- UK 4) FirstName-

Re: Issue in Facet on date field

2009-01-13 Thread Chris Hostetter
: I have to create two facets on a date field: : 1) First Facet will have results between two date range , i.e. [NOW TO : NOW+45DAYS] : 2) Second Facet will have results between two date range , i.e. [NOW-45DAYS : TO NOW] the date faceting code is designed to generate counts for regular