Hierarchical Faceting

2008-10-21 Thread Sachit P. Menon
Hi,

I have gone through the archive in search of Hierarchical Faceting but was not 
clear as what should I exactly do to achieve that.

Suppose, I have 3 categories like politics, science and sports. In the schema, 
I am defining a field type called 'Category'. I don't have a sub category field 
type (and don't want to have one).
Now, Cricket and Football are some categories which can be considered to be 
under sports.
When I search for something and if it is present in the 'sports' category, then 
it should show me the facets of cricket and football too.

My question is:
Do I need to specify cricket, football also as categories or sub categories of 
sports (for which I don't want to make a separate field)?
And if I make these as categories only, then how will I achieve the drilling 
down of the data to cricket or football.



Thanks and Regards
Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1, 
Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91 80 
26264000 |Extn  64907|Fax +91 80 26264100 | Mob : +91 
9986747356|www.mindtree.com<https://indiamail.mindtree.com/exchweb/bin/redir.asp?URL=http://www.mindtree.com/>
 |



This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited. E-mail may contain viruses. Before opening attachments 
please check them for viruses and defects. While MindTree Limited (MindTree) 
has put in place checks to minimize the risks, MindTree will not be responsible 
for any viruses or defects or any forwarded attachments emanating either from 
within MindTree or outside.

Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


RE: Hierarchical Faceting

2008-10-26 Thread Sachit P. Menon
Thanks Hoss,

I was mainly looking for an explanation of such an answer only coz in the forum 
there were such replies posted for Hierarchical faceting.
I'll try out the method.

Thanks.
Sachit


-Original Message-
From: Chris Hostetter [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2008 11:43 PM
To: solr-user@lucene.apache.org
Subject: Re: Hierarchical Faceting


: Suppose, I have 3 categories like politics, science and sports. In the
: schema, I am defining a field type called 'Category'. I don't have a sub
: category field type (and don't want to have one). Now, Cricket and
: Football are some categories which can be considered to be under sports.
: When I search for something and if it is present in the 'sports'
: category, then it should show me the facets of cricket and football too.

: My question is: Do I need to specify cricket, football also as
: categories or sub categories of sports (for which I don't want to make a
: separate field)? And if I make these as categories only, then how will I
: achieve the drilling down of the data to cricket or football.

there are lots of solutions to problems like this, but picking the best
one tends to depend on what exactly you wnat the search experience to be
like.  based on your description of your problem, an approach where you
index all of the "ancestor breadcrumbs" for hte categories a document is
in along with the "depth" of each ancestor in the tree, and then facet on
those with a prefix restriction would probably work well. ie:

 docA:  cat = sport/cricket
 docB:  cat = sport/shateboarding
 docC:  cat = sport/skateboarding/vert
 docD:  cat = sport/skateboarding/street
 docE:  cat = finance
tokens indexed

 docA:  cat = 0/sport, 1/sport/cricket
 docB:  cat = 0/sport, 1/sport/shateboarding
 docC:  cat = 0/sport, 1/sport/skateboarding, 2/sport/skateboarding/vert
 docD:  cat = 0/sport, 1/sport/skateboarding, 2/sport/skateboarding/street
 docE:  cat = 0/finance

so now your first request you use something like...
   q=foobar&facet=true&facet.field=cat&f.cat.facet.prefix=0/
..and you'll get facet counds for sport and finance.  if they pick "sport"
your next request is something like...
q=foobarfq=cat:0/sport&facet=true&facet.field=cat&f.cat.facet.prefix=1/sport/
...and you'll get facet counds for all the subcats of sport ... etc.


-Hoss


This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited. E-mail may contain viruses. Before opening attachments 
please check them for viruses and defects. While MindTree Limited (MindTree) 
has put in place checks to minimize the risks, MindTree will not be responsible 
for any viruses or defects or any forwarded attachments emanating either from 
within MindTree or outside.

Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


Multilingual Search

2008-05-09 Thread Sachit P. Menon
Can we have a multilingual search using Solr

 

Thanks and Regards

Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1,
Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91
80 26264000 |Extn  65377|Fax +91 80 26264100 | Mob : +91
9986747356|www.mindtree.com
<https://indiamail.mindtree.com/exchweb/bin/redir.asp?URL=http://www.mindtree
.com/>  |

 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


MultiLingual Search

2008-05-12 Thread Sachit P. Menon
Hello folks,

 

My project requires having the same content (mostly) in multiple languages. 

 

Do I need to have different files for the same content in different
languages? This will need indexing of every file whenever a new content
appears?

Or can we have a mapping of the content with all other languages?

 

Suppose I have hundred documents on particular search criteria (say Solr) in
different languages, how can I get a Chinese result only when I enter Solr in
Chinese as search criteria? Transliteration in this case will be handled from
the front end.

 

Can anyone tell me the steps to implement multilingual search in Solr as I'm
very new to Solr?

 

 

Thanks,

Sachit



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


RE: MultiLingual Search

2008-05-17 Thread Sachit P. Menon
Hi All,

I would like to know if Indian regional languages (like Malayalam, Kannada,
Tamil, etc.) can also be indexed through Solr.

Thanks and Regards
Sachit P. Menon


DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


Multiple Schema File

2008-06-04 Thread Sachit P. Menon
Hi folks,

 

I have a scenario as follows: 

 

I have a CMS where in I'm storing all the contents. I need to index all these
contents and have a search on these indexes. For indexing, I can define a
schema for all the contents. Some of the properties are like title, headline,
body, keywords, images, etc. 

Now I have a user management wherein I store all the user information. I need
to index this also. This may have properties like user name, role, joining
date, etc. 

 

I want to use only one Solr instance. That means I can have only one schema
file. 

How can I define all these totally different properties in one schema file? 

The unique id storage for content and user management may also be different.
How can I achieve this? 

 

 

Thanks and Regards

Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1,
Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91
80 26264000 |Extn  64872|Fax +91 80 26264100 | Mob : +91
9986747356|www.mindtree.com
<https://indiamail.mindtree.com/exchweb/bin/redir.asp?URL=http://www.mindtree
.com/>  |

 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


RE: Multiple Schema File

2008-06-05 Thread Sachit P. Menon
Hi Noble, Climbingrose,

 

Thanks for that reply.

 

We can have a scenario like this:

 

We have a story with attributes like story id, title, headline, author name,
etc. Here story id will be a unique key. 

We also have an author profile which contains attributes like author name,
address, etc.

Here author name will be a unique key.

 

So if we continue to have core fields of the model we have a situation of
having the field author name which is unique id for 1 core model and ordinary
attribute for another core model.

 

How can we implement this? 

And can we have multiple unique ids in the same file?

 

Thanks and Regards

Sachit 

 

-Original Message-
From: climbingrose [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 11:19 AM
To: solr-user@lucene.apache.org
Subject: Re: Multiple Schema File

 

Hi Sachit,

 

I think what you could do is to create all the "core fields" of your models

such as username, role, title, body, images... You can name them with prefix

like user.username, user.role, article.title, article.body... If you want to

dynamically add more fields to your schema, you can use dynamic fields and

keep a mapping between your model's properties and these fields somewhere.

Have a look at the default schema.xml for examples. I did use this approach

for a previous project and it worked fine for me.

 

Cheers,

Cuong

 

On Thu, Jun 5, 2008 at 3:43 PM, Sachit P. Menon <[EMAIL PROTECTED]>

wrote:

 

> Hi folks,

> 

> 

> 

> I have a scenario as follows:

> 

> 

> 

> I have a CMS where in I'm storing all the contents. I need to index all

> these

> contents and have a search on these indexes. For indexing, I can define a

> schema for all the contents. Some of the properties are like title,

> headline,

> body, keywords, images, etc.

> 

> Now I have a user management wherein I store all the user information. I

> need

> to index this also. This may have properties like user name, role, joining

> date, etc.

> 

> 

> 

> I want to use only one Solr instance. That means I can have only one schema

> file.

> 

> How can I define all these totally different properties in one schema file?

> 

> The unique id storage for content and user management may also be

> different.

> How can I achieve this?

> 

> 

> 

> 

> 

> Thanks and Regards

> 

> Sachit 

> 

> DISCLAIMER:

> This message (including attachment if any) is confidential and may be

> privileged. If you have received this message by mistake please notify the

> sender by return e-mail and delete this message from your system. Any

> unauthorized use or dissemination of this message in whole or in part is

> strictly prohibited.

> E-mail may contain viruses. Before opening attachments please check them

> for viruses and defects. While MindTree Limited (MindTree) has put in place

> checks to minimize the risks, MindTree will not be responsible for any

> viruses or defects or any forwarded attachments emanating either from
within

> MindTree or outside.

> Please note that e-mails are susceptible to change and MindTree shall not

> be liable for any improper, untimely or incomplete transmission.

> MindTree reserves the right to monitor and review the content of all

> messages sent to or from MindTree e-mail address. Messages sent to or from

> this e-mail address may be stored on the MindTree e-mail system or else

> where.

> 

 

 

 

-- 

Regards,

 

Cuong Hoang



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.