Panyarak,

The city detection is all performed by the geoLite database, which is
downloaded to your [dspace] directory when you ant update. The work is does
to give location info from an IP address. To have more accurate data, they
offer a monthly updated paid version, GeoIP.
http://www.maxmind.com/app/geolitecity

update_geolite:
     [echo] Downloading:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
     [get] Getting:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
     [get] To: /dspace/config/GeoLiteCity.dat.gz


In the code its used:
location = geoipLookup.getLocation(ip);
city = location.city;
country = location.countryName;

So, if you wanted to make it more accurate, you can consider their other geo
database, or find an alternative that works better. Also, you could
encourage everyone to add their info to the user-submission IP address
sites, such as hostip.info as it looks like GeoIP gets its data from those
kind of sites. "We obtain the known IP location pairs from sites that ask
the web visitor to provide their geographic location. The geographic
location along with the web visitor's IP Address is forwarded to us."


Also, I fixed up the stats-log-importer with a patch that can assist you in
debugging to help you find not-good-enough entries, by cleaning up verbose
output. http://jira.dspace.org/jira/browse/DS-542
However, I don't think there's any manual work you can do to clean up the
imported entries.



On Thu, Apr 15, 2010 at 12:42 PM, Panyarak Ngamsritragul <[email protected]
> wrote:

>
> Thanks a lot Mark.  You are right.  The
> 'solr.statistics.query.filter.spiderIp' must be false.  And it works now.
> But the detection of City is not quite correct.  Where can I fine tune it?
>
>
> Panyarak Ngamsritragul
> Prince of Songkla University.
>
> On Thu, 15 Apr 2010, Mark Diggory wrote:
>
>  Verify when you are working locally on the server that you can
>> successfully
>> get to solr on the port.
>> http://localhost:8080/solr
>>
>> On Thu, Apr 15, 2010 at 8:36 AM, Panyarak Ngamsritragul <
>> [email protected]>
>> wrote:
>>
>>      I have just brought up a 1.6 instance and have also set the solr
>>      server in dspace.cfg as:
>>       solr.log.server =  http://localhost:8080/solr/statistics
>>  solr.statistics.query.filter.spiderIp = true
>>
>>
>> Please leave this the default (false), "true" will cause problems with
>> statistics queries.
>>
>> # control solr statistics querying to filter out spider IPs
>> # false by default
>> # solr.statistics.query.filter.spiderIp = false
>>
>>      When I click at the 'View Statistics', I got no statistics data,
>>      which should be normal? or at least it should give me some zeros
>>      ?
>>
>>      When investigate the dspace.log file, I got the error messages
>>      as attached.  What can be wrong with my setting?
>>
>>      Panyarak Ngamsritragul
>>      Prince of Songkla University.
>>
>>
>> Cheers,
>> Mark
>> --
>> Mark R. Diggory
>> Head of U.S. Operations - @mire
>>
>> http://www.atmire.com - Institutional Repository Solutions
>> http://www.togather.eu - Before getting together, get t...@ther
>>
>> --
>>
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>  --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>


-- 
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to