DIH Issue

2014-05-30 Thread PeriS
Hi, I have followed the documentation to set up my delta query, but when I call the delta-import, the index is happening again for the same record and ends up being indexed twice. Any clues please? Thanks -Peri *** DISCLAIMER *** This is a PRIVATE message. If you are not the intended rec

Re: DIH Issue

2014-05-30 Thread PeriS
No. Is there a way to have the primary key of my entity be the unique key? On May 30, 2014, at 7:00 PM, Ahmet Arslan wrote: > Hi, > > Do you have uniqueKey defined in schema.xml ? > > > > On Saturday, May 31, 2014 1:23 AM, PeriS wrote: > Hi, > > I have fol

Re: DIH Issue

2014-05-30 Thread PeriS
I added the primaryKey as the and still same result. On May 30, 2014, at 8:38 PM, Ahmet Arslan wrote: > Hi, > > Sure, have a look at definition in example schema.xml > > http://wiki.apache.org/solr/UniqueKey > > > > > On Saturday, May 31, 2014 3:35 AM,

Re: DIH Issue

2014-05-31 Thread PeriS
db-import.xml: schema.xml: person_id Thanks Peri On May 31, 2014, at 8:05 AM, Ahmet Arslan wrote: > Hi, > > Did you restart solr? Can you paste relevant portions of data-config.xml and > schema.xml? > > > > On Saturday, May 31, 2014 3:46 AM, Per

Re: DIH Issue

2014-05-31 Thread PeriS
Seems like the issue got fixed after I updated my import query to the following; On May 31, 2014, at 9:24 AM, PeriS wrote: > db-import.xml: > > query="SELECT p.person_id, p.details, p.authz_id, > p.last_modified, a.address_info from person p

Index a new record in MySQL

2014-02-07 Thread PeriS
Hi, How do I approach the issue of firing the DIH without it having to index the whole DB when adding a new record? It appears that when a new record is added the delta query on DIH doesn’t pick up the record. And I don’t want to run a full index on the DB when adding 1 single row. Any suggesti

Re: Index a new record in MySQL

2014-02-08 Thread PeriS
Hi, Version of SOLR is 4.6 and here is my db-import-config.xml On Feb 8, 2014, at 7:29 AM, tamanjit.bin...@yahoo.co.in wrote: > But delta indexing is supposed to do that. Please share details of your > datatimport-config.xml an

DIH - Query

2014-02-09 Thread PeriS
I have a simple join query; This doesn’t bring back the child address records. Am I missing something? Thanks -Peri.S *** DISCLAIMER *** This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mi

Re: DIH - Query

2014-02-09 Thread PeriS
Thanks; I verified that SOLR is intact returning the parent/child rows, but for some reason, the transformer that I have on the parent table, only receives the rows from the parent record. I was wondering how the transformer can get the result of the join query which would be both parent/child r

DIH - LastModifiedDate - Format

2014-02-16 Thread PeriS
Hi, I am using MySQL as the datastore and for the last_modified_date use the java.util.Date. I m seeing that the DIH doesn’t seem to pick records; Is there a date format that I should use for DIH to compare properly and pick up the records for indexing? Thanks -Peri.S *** DISCLAIMER *** This

Turn off suggester

2014-09-25 Thread PeriS
Is there a way to turn off the solr suggester? I have about 30M records and when tomcat starts up, it takes a long time (~10 minutes) for the suggester to decompress the data or its doing soothing as it hangs on SolrSuggester.build(); Any ideas please? Thanks -Peri *** DISCLAIMER *** This is

Re: Help needed in Indexing and Search on xml content

2014-09-25 Thread PeriS
Hi Sangeetha, If you can tell me a little bit more about your setup, I can try and help. If you are on skype, that would be the easiest. Thanks -Peri On Sep 25, 2014, at 3:50 AM, sangeetha.subraman...@gtnexus.com wrote: > Hi Team, > > I am a newbie to SOLR. I have got search fields stored in

Search for partial name in Solr 4.x

2014-11-09 Thread PeriS
I was wondering if there is a way to search on partial names? Ex; Field is a string and stores values like titles of a book; When searching part of the title may be supplied; How do I resolve this? Please let me know Thanks -PeriS *** DISCLAIMER *** This is a PRIVATE message. If you are

solrj 4.3.0

2013-05-15 Thread PeriS
> > > I m trying to use EmbeddedSolrServer but when trying to initialize the > coreContainer, get the following error; > java.lang.NoClassDefFoundError: org/apache/solr/common/ResourceLoader > > Any ideas please? > > -Peri.S > *** DISCLAIMER *** This is a PRIVATE message. If you are not th

Re: solrj 4.3.0

2013-05-15 Thread PeriS
Actually fixed it. So by accident i was using sole-core 3.x version. Once I upgraded the version of solar-core to 4.x it got resolved. Thanks -Peri.S On May 15, 2013, at 7:14 PM, Shawn Heisey wrote: > On 5/15/2013 5:02 PM, PeriS wrote: >>> I m trying to use EmbeddedSolrSer

Re: solrj 4.3.0

2013-05-15 Thread PeriS
Although now its complaining about even though i have provided the correct core name. org.apache.solr.common.SolrException: No such core On May 15, 2013, at 7:21 PM, PeriS wrote: > Actually fixed it. So by accident i was using sole-core 3.x version. Once I > upgraded the version of

Re: solrj 4.3.0

2013-05-15 Thread PeriS
After I turned on the logging, I found the following stack trace: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler' Not sure why the embeddedsolrserver is looking for it... On May 15, 2013, at 7:26 PM, PeriS wrote: > Although now its complaining about

Re: solrj 4.3.0

2013-05-15 Thread PeriS
Figured it out; Added a dependency for the dataimporthandler in my pom file. On May 15, 2013, at 11:59 PM, PeriS wrote: > After I turned on the logging, I found the following stack trace: > > Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler' &g

Delta Import failing - DataImportHandler SOLR 4.2

2013-06-01 Thread PeriS
I have configured the delta query properly, but not sure why the DIH is throwing the following error; SEVERE: Delta Import Failed java.lang.RuntimeException: java.lang.NullPointerException at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:266) at org.apach

Re: Delta Import failing - DataImportHandler SOLR 4.2

2013-06-02 Thread PeriS
BTW the primary key is a combination of 2 fields. So not sure if thats the issue. On Jun 2, 2013, at 1:08 AM, PeriS wrote: > I have configured the delta query properly, but not sure why the DIH is > throwing the following error; > > SEVERE: Delta Import Failed > java.lang.R

Re: Delta Import failing - DataImportHandler SOLR 4.2

2013-06-02 Thread PeriS
l the fields to the transformer (only the primary key) which causes the indexes for other fields not to be updated. Any ideas? On Jun 2, 2013, at 9:38 AM, PeriS wrote: > BTW the primary key is a combination of 2 fields. So not sure if thats the > issue. > > On Jun 2, 2013, at 1:0

Re: Delta Import failing - DataImportHandler SOLR 4.2

2013-06-02 Thread PeriS
Shawn, The db-import-config.xml snippet can be found here:http://apaste.info/sTUw Thanks -Peri.S On Jun 2, 2013, at 11:15 AM, Shawn Heisey wrote: > On 6/2/2013 8:45 AM, PeriS wrote: >> Ok, so I fixed the issue by providing the pk="" in the entity definition as >&

Re: Delta Import failing - DataImportHandler SOLR 4.2

2013-06-02 Thread PeriS
difference, but not sure why the previous way doesn't work. On Jun 2, 2013, at 11:43 AM, PeriS wrote: > Shawn, > > The db-import-config.xml snippet can be found here:http://apaste.info/sTUw > > Thanks > -Peri.S > > On Jun 2, 2013, at 11:15 AM, Shawn Heisey wrote: >

Re: Delta Import failing - DataImportHandler SOLR 4.2

2013-06-02 Thread PeriS
: > On 6/2/2013 10:11 AM, PeriS wrote: >> I found using the strategy mentioned at >> http://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport, it >> works for me. Not sure what the difference is between this one and writing >> individual queries for fetching t

Dynamic Indexing using DB and DIH

2013-06-02 Thread PeriS
Currently I have wired up the dataimporthandler to do a full and incremental indexing. I was wondering if there was way to automatically update the indexes as soon as the row in the table gets updated. I don't want to get into any sort of cron jobs, triggers etc; Current what I do is as soon as

Re: Dynamic Indexing using DB and DIH

2013-06-03 Thread PeriS
tack that does a Solr query with the > SolrEntityProcessor. You can do a query that gets the most recent timestamp > in the index, and then use that in the DB update command. > > On 06/02/2013 06:25 PM, PeriS wrote: >> Currently I have wired up the dataimporthandler to do a full a

Re: Dynamic Indexing using DB and DIH

2013-06-03 Thread PeriS
gt; On 6/3/2013 12:35 PM, PeriS wrote: >> I noticed the delta-import is creating a new indexed entry on top of the >> existing one..is that normal? > > Not sure what you are asking here, so I'll give an answer to the question I > think you're asking: If you have a

Re: Dynamic Indexing using DB and DIH

2013-06-03 Thread PeriS
Shawn, That just did it. I didn't realize that I hadn't specified the uniqueKey in the schema.xml; Once I did it, its working now. Thanks for the pointers.!! On Jun 3, 2013, at 4:23 PM, Shawn Heisey wrote: > On 6/3/2013 1:58 PM, PeriS wrote: >> You got the point; I do ha

Field Names

2013-06-10 Thread PeriS
like 10*_* which would translate to 100_whatever thru 109_whatever; Any ideas please? Thanks -PeriS

Re: Field Names

2013-06-11 Thread PeriS
n dynamic > fields? > > In particular, how would users and the application query those dynamic fields? > > -- Jack Krupansky > > -Original Message- From: PeriS > Sent: Monday, June 10, 2013 9:54 PM > To: solr-user@lucene.apache.org > Subject: Field Names >

Re: Field Names

2013-06-11 Thread PeriS
Nothing wrong and would work too, but I wanted to see if I could restrict it more as per the schema at http://www.loc.gov/marc/bibliographic/. On Jun 10, 2013, at 10:09 PM, Gora Mohanty wrote: > What is wrong with, e.g., > stored="true"/> > > Regards, > Gora

Re: Field Names

2013-06-11 Thread PeriS
, 2013, at 7:14 AM, PeriS wrote: > So what I m trying to do is index MARC21 fields which have a schema defined > at http://www.loc.gov/marc/bibliographic/. Now the reason I wanted to use > dynamic fields is so that once they are defined I don't have to touch the > schema.xml an

Error indexing string field

2013-06-11 Thread PeriS
I have a field declared as type string, so should it care whats inside the string? Caused by: java.lang.NumberFormatException: For input string: "1835-1910." Thanks -Peri

DIH Question

2013-06-12 Thread PeriS
When creating a new record in the db, and running the deal-import command, i m not seeing the new record being indexed. Is there some configuration I need to set? The use is the db already has records loaded and I would like to index new records. Whats the process? Any ideas please? Thanks -Per

Re: DIH Question

2013-06-12 Thread PeriS
1. Current num records in db: 4 2. Created a new record and called delta-import using the following url; localhost:8983/dataimport?command=delta-import SOLR Log here : http://apaste.info/gF3N 3. When i tried checking the status from the browser - logs are here: http://apaste.info/gxDF db-import-

Re: DIH Question

2013-06-12 Thread PeriS
What would be the process to update a new record in an existing db using DIH? On Jun 12, 2013, at 1:06 PM, PeriS wrote: > 1. Current num records in db: 4 > 2. Created a new record and called delta-import using the following url; > localhost:8983/dataimport?command=delta-import > S

DIH Update question

2013-06-13 Thread PeriS
> What would be the process to update a new record in an existing db using DIH? Thanks