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 under that structure?

Eric


On Mar 10, 2009, at 7:13 AM, Praveen_Kumar_J wrote:


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,
....
...
<fieldType name="TestType" class="com.abc.lucene.TestType"
sortMissingLast="true" omitNorms="true"/>
....
<dynamicField name="*_i_i_s_m"  type="integer"    indexed="true"
stored="true" multiValued="true"/>
<dynamicField name="*_i_i_s_nm"  type="integer"    indexed="true"
stored="true" multiValued="false"/>
<dynamicField name="*_i_i_ns_m"  type="integer"    indexed="true"
stored="false" multiValued="true"/>
....
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 Solr. But still planning
to implement it somehow (With the help of DB).

/Root
  |
  |_ POJO Type1
  |     |
  |     |_POJO Type1_1
  |
  |_POJO Type2
        |
        |_POJO Type2_1

I need to organize the POJOs as shown above.
Is there any way to achieve this requirement??

Regards,
Praveen


--
View this message in context: 
http://www.nabble.com/Organizing-POJO%27s-in-a-heirarchy-in-Solr-tp22427900p22432121.html
Sent from the Solr - User mailing list archive at Nabble.com.


-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com
Free/Busy: http://tinyurl.com/eric-cal




Reply via email to