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 sanraj25 <sa...@gmail.com> on 2008/08/28 11:01:05 UTC

Storing two different files

Hi
     I want to  index two different files in solr.(for ex)  I want to store
two tables like, job_post and job_profile in solr. But now both are stored
in same place in solr.when i get data from job_post, data come from
job_profile also.So i want to maintain the data of job_post and job_profile
separately.
thanks in advance
suggest me a good solutions

with Regards,
Santhanaraj R

-- 
View this message in context: http://www.nabble.com/Storing-two-different-files-tp19196803p19196803.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Storing two different files

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Hi,

You can do with one index only. Add a flag field to the schema which flags
whether the data is a post or a profile. You can then use filter queries on
the flag field to limit results from either post or profile.

On Thu, Aug 28, 2008 at 2:31 PM, sanraj25 <sa...@gmail.com> wrote:

>
> Hi
>     I want to  index two different files in solr.(for ex)  I want to store
> two tables like, job_post and job_profile in solr. But now both are stored
> in same place in solr.when i get data from job_post, data come from
> job_profile also.So i want to maintain the data of job_post and job_profile
> separately.
> thanks in advance
> suggest me a good solutions
>
> with Regards,
> Santhanaraj R
>
> --
> View this message in context:
> http://www.nabble.com/Storing-two-different-files-tp19196803p19196803.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Shalin Shekhar Mangar.

Re: Storing two different files

Posted by Walter Underwood <wu...@netflix.com>.
You don't need two schemas. Have a field "type" with values
"job_post" and "job_profile", then filter based on type:job_post
and type:job_profile.

wunder

On 8/28/08 4:57 AM, "Norberto Meijome" <fr...@meijome.net> wrote:

> On Thu, 28 Aug 2008 02:01:05 -0700 (PDT)
> sanraj25 <sa...@gmail.com> wrote:
> 
>> I want to  index two different files in solr.(for ex)  I want to store
>> two tables like, job_post and job_profile in solr. But now both are stored
>> in same place in solr.when i get data from job_post, data come from
>> job_profile also.So i want to maintain the data of job_post and job_profile
>> separately.
> 
> hi :)
> you need to have 2 separate schemas, and therefore 2 separate indexes. You
> should read about MultiCore in the wiki.
> 
> B
> 
> _________________________
> {Beto|Norberto|Numard} Meijome
> 
> "Unix is very simple, but it takes a genius to understand the simplicity."
>    Dennis Ritchie
> 
> I speak for myself, not my employer. Contents may be hot. Slippery when wet.
> Reading disclaimers makes you go blind. Writing them is worse. You have been
> Warned.


Re: Storing two different files

Posted by Norberto Meijome <fr...@meijome.net>.
On Thu, 28 Aug 2008 02:01:05 -0700 (PDT)
sanraj25 <sa...@gmail.com> wrote:

> I want to  index two different files in solr.(for ex)  I want to store
> two tables like, job_post and job_profile in solr. But now both are stored
> in same place in solr.when i get data from job_post, data come from
> job_profile also.So i want to maintain the data of job_post and job_profile
> separately.

hi :)
you need to have 2 separate schemas, and therefore 2 separate indexes. You
should read about MultiCore in the wiki.

B

_________________________
{Beto|Norberto|Numard} Meijome

"Unix is very simple, but it takes a genius to understand the simplicity."
   Dennis Ritchie

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.