Re: Group by distance

2012-04-25 Thread ViruS
I mean many group's show on map... something like markercluster:
http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/speed_test_example.html

But I don't want to send all my records to browser.

I find workaround to make field wiitch lower precission geocoding:
$lat = float($lat,5);
$lng = float($lng,5);
$solr['geo_city'] = $lat,$lng;

And after indexing i can use normal group on this field.


On 24 April 2012 17:06, Erick Erickson erickerick...@gmail.com wrote:

 What do you mean by grouped? It's relatively easy to return
 only documents within a certain radius, and it's also easy to
 return the results ordered by distance.

 Here's a good place to start:
 http://wiki.apache.org/solr/SpatialSearch#geofilt_-_The_distance_filter

 Best
 Erick

 On Tue, Apr 24, 2012 at 6:33 AM, ViruS svi...@gmail.com wrote:
  I think this only can works when I have many records in same position.
  My problem is to group witch short distance... like I say in last mail...
  about 10km.
  I need put markers on Poland country and display this.
  Now I have 100k records, but in future I will have about 2mln records so
 I
  must send grouped records.
 
  Best,
  Piotr
 
  On 24 April 2012 12:08, ravicv ravichandra...@gmail.com wrote:
 
  Use group=true and group.field in your query.
  And your solr version should be solr 3.4 and above.
 
  Thanks,
  Ravi
 
  --
  View this message in context:
 
 http://lucene.472066.n3.nabble.com/Group-by-distance-tp3934876p3934886.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 
 
  --
  Piotr (ViruS) Sikora
  E-mail/JID: vi...@hostv.pl
  http://piotrsikora.pl




-- 
Piotr (ViruS) Sikora
E-mail/JID: vi...@hostv.pl
http://piotrsikora.pl


Re: Group by distance

2012-04-24 Thread ViruS
I think this only can works when I have many records in same position.
My problem is to group witch short distance... like I say in last mail...
about 10km.
I need put markers on Poland country and display this.
Now I have 100k records, but in future I will have about 2mln records so I
must send grouped records.

Best,
Piotr

On 24 April 2012 12:08, ravicv ravichandra...@gmail.com wrote:

 Use group=true and group.field in your query.
 And your solr version should be solr 3.4 and above.

 Thanks,
 Ravi

 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Group-by-distance-tp3934876p3934886.html
 Sent from the Solr - User mailing list archive at Nabble.com.




-- 
Piotr (ViruS) Sikora
E-mail/JID: vi...@hostv.pl
http://piotrsikora.pl


Re: Problem witch adding classpath

2012-03-19 Thread ViruS
Hi,

Thanks this works!

I also yesterday try to make new instance of SOLR and I find bug in my
configuration.
When i copied files to SOLR_HOME/../dist/ and also i input in configuration
directive to contrib they have some collision.
My configuration now is SOLR_HOME//conf/solrconfig.xml:
config
  lib dir=../../../contrib/velocity/lib /
 lib dir=../../../dist/ regex=apache-solr-velocity-\d.*\.jar /

  lib path=../../../dist/lucene-stempel-3.5.0.jar /
  lib path=../../../dist/apache-solr-analysis-extras-3.5.0.jar /

/config

And everything works.

Thanks for replay.

Best,
Piotr Sikora

On 16 March 2012 10:39, Chantal Ackermann
chantal.ackerm...@btelligent.dewrote:


 Hi,

 I put all those jars into SOLR_HOME/lib. I do not specify them in
 solrconfig.xml explicitely, and they are all found all right.

 Would that be an option for you?

 Chantal


 On Thu, 2012-03-15 at 17:43 +0100, ViruS wrote:
  Hello,
 
  I just now try to switch from 3.4.0 to 3.5.0 ... i make new instance and
  when I try use same config for adding libaries i have error.
  SEVERE: java.lang.NoClassDefFoundError:
  org/apache/lucene/analysis/TokenStream
  This error only show when i use polish stempel.
  In config i have set (solr/vrs/conf/solrconfig.xml):
lib path=../../../dist/lucene-stempel-3.5.0.jar /
lib path=../../../dist/apache-solr-analysis-extras-3.5.0.jar /
 
 
  When I start Solr is adding path:
  INFO: Adding specified lib dirs to ClassLoader
  2012-03-15 17:35:51 org.apache.solr.core.SolrResourceLoader
  replaceClassLoader
  INFO: Adding
  'file:/home/virus/appl/apache-solr-3.5.0/dist/lucene-stempel-3.5.0.jar'
 to
  classloader
  2012-03-15 17:35:51 org.apache.solr.core.SolrResourceLoader
  replaceClassLoader
  INFO: Adding
 
 'file:/home/virus/appl/apache-solr-3.5.0/dist/apache-solr-analysis-extras-3.5.0.jar'
  to classloader
 
  Same problem I have witch Velocity
  In config (solr/ac/conf/solrconfig.xml:
  lib dir=../../../contrib/velocity/lib /
  ...
  queryResponseWriter name=velocity class=solr.VelocityResponseWriter
  enable=true/
 
  When I satrt have this error:
  SEVERE: org.apache.solr.common.SolrException: Error Instantiating
  QueryResponseWriter, solr.VelocityResponseWriter is not a
  org.apache.solr.response.QueryResponseWriter
  INFO: Adding specified lib dirs to ClassLoader
  2012-03-15 17:40:17 org.apache.solr.core.SolrResourceLoader
  replaceClassLoader
  INFO: Adding
 
 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-2.0.jar'
  to classloader
 
 
 
  Full start log here: http://piotrsikora.pl/solr.log
 
 
  Thanks in advanced!
 




-- 
Piotr (ViruS) Sikora
vi...@cdt.pl
svi...@gmail.com
JID: vi...@ipc.net.pl


Re: Apache solr issue after configuration

2012-03-15 Thread ViruS
Hello,

I have still same problem after installation.
Files are loaded:

~/appl/apache-solr-3.5.0/example $ java -Dsolr.solr.home=multicore/ -jar
start.jar 21 | grep contrib
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-2.0.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-1.6.4.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-3.2.1.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-1.7.0.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-LICENSE-ASL.txt'
to classloader


my config multicore/ac/conf/solrconfig.xml

config
  luceneMatchVersionLUCENE_35/luceneMatchVersion
 lib dir=../../../contrib/velocity/lib /
...
queryResponseWriter name=velocity class=solr.VelocityResponseWriter
enable=true/
/config

And I still get error:

INFO: [ac] Opening new SolrCore at multicore/ac/,
dataDir=multicore/ac/data/
2012-03-15 13:18:11 org.apache.solr.core.JmxMonitoredMap init
INFO: No JMX servers found, not exposing Solr information with JMX.
2012-03-15 13:18:11 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error Instantiating
QueryResponseWriter, solr.VelocityResponseWriter is not a
org.apache.solr.response.QueryResponseWriter
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:427)
...

What's wrong?

Thanks in advanced for help!



-- 
Piotr (ViruS) Sikora
vi...@cdt.pl
svi...@gmail.com
JID: vi...@ipc.net.pl