Hierarchical faceting with solr 1.4 version

2012-01-31 Thread Gupta, Veeranjaneya
Hi,

I am using SOLR1.4 version. I have a requirement to display the data as below.

Polygon id=TX172- type=MSA name=Dallas/Ft. Worth 
dictionaryId=297224
Polygon id=TX172-0200 type=Area name=Denton dictionaryId=296635/
Polygon id=TX172-1000 type=Area name=Grand Prairie dictionaryId=400702
Polygon id=TX172-0601 type=Hood name=Entertainment District 
dictionaryId=14993/
Polygon id=TX172-0404 type=Hood name=South Dallas dictionaryId=279265/
/Polygon
Polygon id=TX172-0800 type=Area name=Northeast Dallas 
dictionaryId=297286
Polygon id=TX172-0809 type=Hood name=Park Central dictionaryId=15424/
Polygon id=TX172-0808 type=Hood name=Addison dictionaryId=15384/
Polygon id=TX172-0807 type=Hood name=Galleria dictionaryId=15417/
/Polygon
Polygon id=TX172-0300 type=Area name=Fort Worth dictionaryId=296683
Polygon id=TX172-0305 type=Hood name=TCU and Forest Park 
dictionaryId=279770/
Polygon id=TX172-0303 type=Hood name=North Fort Worth and Fossil Creek 
dictionaryId=278905/
Polygon id=TX172-0302 type=Hood name=Alliance and Texas Motor Speedway 
dictionaryId=296856/
/Polygon
/Polygon

Here we store 3 types of polygons MSA, AREA and HOOD.
One MSA can have more than one AREA types as children and one AREA can have 
more than one HOOD types as children.
How to store this kind of data in solr and how to query the solr to get this 
hierarchical data?

Thanks, Gupta


Question about SOLR custom sort order

2012-01-01 Thread Gupta, Veeranjaneya
Hi,

I use Solr 1.4 version and I have a question about SOLR sort order.
Requirement : Sort  names(e.g. : location names like Dallas(City), las 
vegas(City), Texas(State), India(Country), Canada(Country), etc..) based on 
category(e.g. : CITY, STATE, COUNTRY, etc..)
How to sort the SOLR results based on custom order?
Expected result :

1.   Dallas

2.   Las Vegas

3.   Texas

4.   Canada

5.   India

Thanks  Regards, Gupta