You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by KK <di...@gmail.com> on 2009/05/16 09:45:01 UTC

Sole core naming convention for multicores

Hi All,
I'm trying to put multicores for Solr[lol, finding the multicore config a
bit difficult, any good/simple steps to do the same?any pointers].
Let me come to the point, essentially what I want is that whenever a person
registersfor our service, I'll use his mail-id[this is unique] as the
corename. I dont know if its viable or not. As per the wiki example the
creation/registration of new core is done like this,

http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data

this says the name as something like coreX where X replaces a num. Is it
possible to have a name like say "alex.go@abc.com"? If not may be I've map
the mail-id to some unique number that I'll use as a core name. I don't want
to do all this [don't know either], hence my question. Do let me know some
smart ways of doing the same.
Note: I've to use mail-id as the unique identifier. Thanks in appreciation.

Thanks,
KK>

Re: Sole core naming convention for multicores

Posted by KK <di...@gmail.com>.
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 this
is simple yet elegant way to fix the problem.

Thanks,
KK

On Mon, May 18, 2009 at 8:14 PM, Brian Mansell <li...@gmail.com>wrote:

> 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" <di...@gmail.com> wrote:
>
> Thank you Otis.
> One silly question, how would I know that a particular character is
> forbidden, I think Solr will give me exceptions saying that some characters
> not allowed, right?
>
> Thank,
> KK.
>
> On Sun, May 17, 2009 at 3:12 AM, Otis Gospodnetic <
> otis_gospodnetic@yahoo.com> wrote: > > KK, > >...
>

Re: Sole core naming convention for multicores

Posted by Brian Mansell <li...@gmail.com>.
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" <di...@gmail.com> wrote:

Thank you Otis.
One silly question, how would I know that a particular character is
forbidden, I think Solr will give me exceptions saying that some characters
not allowed, right?

Thank,
KK.

On Sun, May 17, 2009 at 3:12 AM, Otis Gospodnetic <
otis_gospodnetic@yahoo.com> wrote: > > KK, > >...

Re: Sole core naming convention for multicores

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
solr will not give any exceptions .atleast ,there is no code which
checks for that. choose names which are valid characters in url

On Mon, May 18, 2009 at 11:08 AM, KK <di...@gmail.com> wrote:
> Thank you Otis.
> One silly question, how would I know that a particular character is
> forbidden, I think Solr will give me exceptions saying that some characters
> not allowed, right?
>
> Thank,
> KK.
>
> On Sun, May 17, 2009 at 3:12 AM, Otis Gospodnetic <
> otis_gospodnetic@yahoo.com> wrote:
>
>>
>> KK,
>>
>> That should work just fine.  Should any of the characters in email
>> addresses turn out to be forbidden, just replace them consistently.  For
>> example, if @ turns out to be the problem, you could simple replace it with
>> _.
>>
>>  Otis
>> --
>> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>>
>>
>>
>> ----- Original Message ----
>> > From: KK <di...@gmail.com>
>> > To: solr-user@lucene.apache.org
>> > Sent: Saturday, May 16, 2009 3:45:01 AM
>> > Subject: Sole core naming convention for multicores
>> >
>> > Hi All,
>> > I'm trying to put multicores for Solr[lol, finding the multicore config a
>> > bit difficult, any good/simple steps to do the same?any pointers].
>> > Let me come to the point, essentially what I want is that whenever a
>> person
>> > registersfor our service, I'll use his mail-id[this is unique] as the
>> > corename. I dont know if its viable or not. As per the wiki example the
>> > creation/registration of new core is done like this,
>> >
>> >
>> http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data
>> >
>> > this says the name as something like coreX where X replaces a num. Is it
>> > possible to have a name like say "alex.go@abc.com"? If not may be I've
>> map
>> > the mail-id to some unique number that I'll use as a core name. I don't
>> want
>> > to do all this [don't know either], hence my question. Do let me know
>> some
>> > smart ways of doing the same.
>> > Note: I've to use mail-id as the unique identifier. Thanks in
>> appreciation.
>> >
>> > Thanks,
>> > KK>
>>
>>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Re: Sole core naming convention for multicores

Posted by KK <di...@gmail.com>.
Thank you Otis.
One silly question, how would I know that a particular character is
forbidden, I think Solr will give me exceptions saying that some characters
not allowed, right?

Thank,
KK.

On Sun, May 17, 2009 at 3:12 AM, Otis Gospodnetic <
otis_gospodnetic@yahoo.com> wrote:

>
> KK,
>
> That should work just fine.  Should any of the characters in email
> addresses turn out to be forbidden, just replace them consistently.  For
> example, if @ turns out to be the problem, you could simple replace it with
> _.
>
>  Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
> ----- Original Message ----
> > From: KK <di...@gmail.com>
> > To: solr-user@lucene.apache.org
> > Sent: Saturday, May 16, 2009 3:45:01 AM
> > Subject: Sole core naming convention for multicores
> >
> > Hi All,
> > I'm trying to put multicores for Solr[lol, finding the multicore config a
> > bit difficult, any good/simple steps to do the same?any pointers].
> > Let me come to the point, essentially what I want is that whenever a
> person
> > registersfor our service, I'll use his mail-id[this is unique] as the
> > corename. I dont know if its viable or not. As per the wiki example the
> > creation/registration of new core is done like this,
> >
> >
> http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data
> >
> > this says the name as something like coreX where X replaces a num. Is it
> > possible to have a name like say "alex.go@abc.com"? If not may be I've
> map
> > the mail-id to some unique number that I'll use as a core name. I don't
> want
> > to do all this [don't know either], hence my question. Do let me know
> some
> > smart ways of doing the same.
> > Note: I've to use mail-id as the unique identifier. Thanks in
> appreciation.
> >
> > Thanks,
> > KK>
>
>

Re: Sole core naming convention for multicores

Posted by Otis Gospodnetic <ot...@yahoo.com>.
KK,

That should work just fine.  Should any of the characters in email addresses turn out to be forbidden, just replace them consistently.  For example, if @ turns out to be the problem, you could simple replace it with _.

 Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: KK <di...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Saturday, May 16, 2009 3:45:01 AM
> Subject: Sole core naming convention for multicores
> 
> Hi All,
> I'm trying to put multicores for Solr[lol, finding the multicore config a
> bit difficult, any good/simple steps to do the same?any pointers].
> Let me come to the point, essentially what I want is that whenever a person
> registersfor our service, I'll use his mail-id[this is unique] as the
> corename. I dont know if its viable or not. As per the wiki example the
> creation/registration of new core is done like this,
> 
> http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data
> 
> this says the name as something like coreX where X replaces a num. Is it
> possible to have a name like say "alex.go@abc.com"? If not may be I've map
> the mail-id to some unique number that I'll use as a core name. I don't want
> to do all this [don't know either], hence my question. Do let me know some
> smart ways of doing the same.
> Note: I've to use mail-id as the unique identifier. Thanks in appreciation.
> 
> Thanks,
> KK>