Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Praveen_Kumar_Jayaram
Thanks for the pointers Erik. Erik Hatcher wrote: > > > On Mar 11, 2009, at 10:39 AM, PKJ wrote: >> Could you please post some good pointers for learning more on Solr? > > The Solr wiki is quite rich with details. The official Solr tutorial > is a nice quick start, and we expanded a bit o

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Erik Hatcher
On Mar 11, 2009, at 10:39 AM, PKJ wrote: Could you please post some good pointers for learning more on Solr? The Solr wiki is quite rich with details. The official Solr tutorial is a nice quick start, and we expanded a bit on this with our article and screencast here:

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread PKJ
Thanks for your response Eric. I appreciate your idea to have the path as a property/field itself. Am pretty new to Solr and Lucene. Could you please post some good pointers for learning more on Solr? Erik Hatcher wrote: > > > On Mar 11, 2009, at 8:47 AM, Eric Pugh wrote: >> Solr really isn'

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Schley Andrew Kutz
I like the path idea, however, it does not allow you to perform tantamount joins on elements in the path. I am working on an idea that would effectively enable you to perform RDF style queries: FIND a WHERE a.f1 > 300 AND a.b.f1 > 3 AND a.c.name == 'foo' f1 is a field on 'a' where 'b' and 'c

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread PKJ
Pretty good idea David. Yeah I understand that Solr has not build for such purposes. It is a good search server. Will incorporated your idea to store the path as a property and search. Thanks again. Please post if you see any improvements for this requirement in near future. Regards, Praveen D

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread PKJ
Thanks for your response Eric. Actually the scenario is to use the Solr search server as a hierarchical storage system also. Where we store objects/files in a hierarchy and do searches on that. something like DB (for files) + Solr. Here I am evaluating Solr with an knowledge management system. So

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Erik Hatcher
Good thinking David! :) Or even a tokenized field... tokenized by path segments, so the document we're talking about could have a path field with the terms: / Repository and /Repository/Folder1 - that way the queries can be made simpler (and perhaps faster). Erik On Mar 11, 200

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Smiley, David W.
Solr could still work for you Praveen. Consider a schema with a field named "parentPath" that is not tokenized. It stores the path to the folder containing the current document but does not have the document's name in it. In your example, this would be "/Repository/Folder1/". The document's n

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Erik Hatcher
On Mar 11, 2009, at 8:47 AM, Eric Pugh wrote: Solr really isn't organized for tree structures of data. I think you might do better using a database with a tree structure. That's not a very fair statement. Sure, documents in Solr/Lucene are simply composed of a flat list of fields, but one

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread Eric Pugh
Solr really isn't organized for tree structures of data. I think you might do better using a database with a tree structure. pojo would be a table of pojo's serialized out. And the parent_id could point to another structure that builds the tree. Can you flesh out your use case more of wh

Re: Organizing POJO's in a heirarchy in Solr

2009-03-11 Thread PKJ
Is there anyone who have any idea solve this issue? Please give your thoughts. Regards, Praveen PKJ wrote: > > Hi Eric, > > Thanks for your response. > Yes you are right! Am trying to place POJOs into Solr directly and this is > working fine. > I want to search them based on the object prope

Re: Organizing POJO's in a heirarchy in Solr

2009-03-10 Thread Praveen_Kumar_J
Hi Eric, Thanks for your response. Yes you are right! Am trying to place POJOs into Solr directly and this is working fine. I want to search them based on the object properties, need to organize them in a heirarchy but not by package names. Something like: /Repository | |_ Folder1

Re: Organizing POJO's in a heirarchy in Solr

2009-03-10 Thread Eric Pugh
Are you trying to Java objects in Solr in order to be searchable? How about just dumping them as text using POJO <--> to text formats such as JSON or Betwixt (http://commons.apache.org/betwixt/). Then you can just search on the package structure... ?q=com.abc.lucene.* to return everything u

Re: Organizing POJO's in a heirarchy in Solr

2009-03-10 Thread Praveen_Kumar_J
Someone please throw some light on this post. Thanks in advance. Praveen_Kumar_J wrote: > > Hi > > I just upload simple POJOs into Solr by creating custom types and dynamic > fields in Solr schema as shown below, > > ... > sortMissingLast="true" omitNorms="true"/> > > stored="true

Organizing POJO's in a heirarchy in Solr

2009-03-09 Thread Praveen_Kumar_J
Hi I just upload simple POJOs into Solr by creating custom types and dynamic fields in Solr schema as shown below, ... But I need to organize these POJOs in a hierarchy which can be navigated easily (something like explorer). Am not sure whether this feature is supported by