FW:

2013-05-16 Thread Michael Lorz
http://hardonfonts.com/mmndsejat.php 





  











Michael Lorz  




Weighted facet strings

2011-08-05 Thread Michael Lorz
Hi all,

I have documents which are (manually) tagged whith categories. Each 
category-document relation has a weight between 1 and 5: 

5: document fits perfectly in this category,
.
. 
1: document may be considered as belonging to this category. 


I would now like to use this information with solr. At the moment, I don't use 
the weight at all:

field name=category type=string indexed=true stored=true 
multiValued=true/

Both the category as well as the document body are specified as query fields 
(str name=qf in solrconfig.xml).


What I would like is the following:

- filter: category=some_category_name, query: *.*  - Results should be score by 
the above mentioned weight
- filter: category=some_category_name, query: some_keyword - Results should be 
scored by a combination of the score of 'some_keyword' and the above mentioned 
weight
- filter: none, query: some_category_name - Documents with category 
'some_category_name' should be found as well as documents which contain the 
term 
'some_category_name'. Results should be scored by a combination of the score of 
'some_keyword' and the above mentioned weight


Do you have any ideas how this could be done?

Thanks in advance
Michi

Spatial Search with distance as a parameter

2011-07-19 Thread Michael Lorz
Hi all,

I have the following problem: The documents in the index of my solr instance 
correspond to persons. Each document (=person) has lat/lon coordinates and 
additionally a travel radius. The coordinates correspond to the office of the 
person, the travel radius indicates a distance which the person is willing to 
travel.

I would like to search for all persons which are willing to travel to a 
particular place (also given as lat/lon coordinates). In other words I have to 
do a query with the geofilt filter. The problem here: the distance parameter d 
cannot be defined in advance, but should correspond to the travel radius (which 
may be different for each person).

Any ideas how this problem could be solved?

Thanks in advance
Michi