-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from pitangainnovare/impl/top100
Cria índice metrics para apoiar SciELO Analytics
- Loading branch information
Showing
25 changed files
with
635 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
index/data/usage/schema.xml → index/data/log_manager/conf/schema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Written by CorePropertiesLocator | ||
#Fri Mar 29 13:50:09 UTC 2024 | ||
schema=schema.xml | ||
dataDir=data | ||
name=log_manager | ||
config=solrconfig.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<schema name="metrics" version="1.5"> | ||
|
||
<types> | ||
<fieldType name="string" class="solr.StrField" sortMissingLast="true" /> | ||
|
||
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/> | ||
|
||
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> | ||
|
||
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/> | ||
|
||
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> | ||
|
||
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/> | ||
|
||
<fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/> | ||
|
||
<fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/> | ||
|
||
<fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/> | ||
|
||
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> | ||
|
||
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/> | ||
|
||
<fieldtype name="text" class="solr.TextField" positionIncrementGap="100"> | ||
<analyzer type="index"> | ||
<tokenizer class="solr.WhitespaceTokenizerFactory"/> | ||
<filter class="solr.ASCIIFoldingFilterFactory"/> | ||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
</analyzer> | ||
|
||
<analyzer type="query"> | ||
<tokenizer class="solr.WhitespaceTokenizerFactory"/> | ||
<filter class="solr.ASCIIFoldingFilterFactory"/> | ||
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/> | ||
<filter class="solr.LowerCaseFilterFactory"/> | ||
</analyzer> | ||
</fieldtype> | ||
|
||
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> | ||
<analyzer> | ||
<tokenizer class="solr.KeywordTokenizerFactory"/> | ||
<filter class="solr.LowerCaseFilterFactory" /> | ||
</analyzer> | ||
</fieldType> | ||
|
||
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> | ||
</types> | ||
|
||
<fields> | ||
<field name="_version_" type="long" indexed="true" stored="true"/> | ||
|
||
<!-- id unique field --> | ||
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- default search --> | ||
<field name="text" type="text" indexed="true" stored="true"/> | ||
<field name="tw" type="text" indexed="true" stored="false" multiValued="true"/> | ||
|
||
<!-- haystack --> | ||
<field name="django_ct" type="string" indexed="true" stored="true" multiValued="false"/> | ||
<field name="django_id" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- type of solr document: top100articles, tr_j1, tr_j4, ir_a1, ir_a4, gr_j1, gr_j4, lr_j1, lr_j4, cr_j1 --> | ||
<fieldn name="metric_scope" type="string" index="true" stored="true" multiValued="false"/> | ||
|
||
<!-- COUNTER R5 metrics --> | ||
<field name="total_item_requests" type="int" indexed="true" stored="true" multiValued="false"/> | ||
<field name="total_item_investigations" type="int" indexed="true" stored="true" multiValued="false"/> | ||
<field name="unique_item_requests" type="int" indexed="true" stored="true" multiValued="false"/> | ||
<field name="unique_item_investigations" type="int" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- date of access --> | ||
<field name="year_month_day" type="date" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- country of origin of access --> | ||
<field name="country" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- language of the accessed document --> | ||
<field name="document_language" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- collection --> | ||
<field name="collection" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- journal --> | ||
<field name="key_issn" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- document identifier --> | ||
<field name="pid" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- year of publication --> | ||
<field name="yop" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<field name="priority" type="string" indexed="true" stored="true" multiValued="false"/> | ||
|
||
<!-- dynamic field definitions --> | ||
<dynamicField name="*" type="text" indexed="true" stored="true" multiValued="false"/> | ||
|
||
</fields> | ||
|
||
<uniqueKey>id</uniqueKey> | ||
<copyField source="text" dest="tw"/> | ||
<copyField source="*" dest="tw"/> | ||
|
||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<!-- | ||
~ Copyright (c) 2013-2022. LA Referencia / Red CLARA and others | ||
~ | ||
~ This program is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU Affero General Public License as published by | ||
~ the Free Software Foundation, either version 3 of the License, or | ||
~ (at your option) any later version. | ||
~ | ||
~ This program is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
~ GNU Affero General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Affero General Public License | ||
~ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
~ | ||
~ This file is part of LA Referencia software platform LRHarvester v4.x | ||
~ For any further information please contact Lautaro Matas <[email protected]> | ||
--> | ||
|
||
<!-- | ||
This is a stripped down config file used for a simple example... | ||
It is *not* a good example to work from. | ||
--> | ||
<config> | ||
<luceneMatchVersion>LUCENE_42</luceneMatchVersion> | ||
<!-- The DirectoryFactory to use for indexes. | ||
solr.StandardDirectoryFactory, the default, is filesystem based. | ||
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. --> | ||
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/> | ||
|
||
<dataDir>${solr.core0.data.dir:}</dataDir> | ||
|
||
<!-- To enable dynamic schema REST APIs, use the following for <schemaFactory>: | ||
<schemaFactory class="ManagedIndexSchemaFactory"> | ||
<bool name="mutable">true</bool> | ||
<str name="managedSchemaResourceName">managed-schema</str> | ||
</schemaFactory> | ||
When ManagedIndexSchemaFactory is specified, Solr will load the schema from | ||
he resource named in 'managedSchemaResourceName', rather than from schema.xml. | ||
Note that the managed schema resource CANNOT be named schema.xml. If the managed | ||
schema does not exist, Solr will create it after reading schema.xml, then rename | ||
'schema.xml' to 'schema.xml.bak'. | ||
Do NOT hand edit the managed schema - external modifications will be ignored and | ||
overwritten as a result of schema modification REST API calls. | ||
When ManagedIndexSchemaFactory is specified with mutable = true, schema | ||
modification REST API calls will be allowed; otherwise, error responses will be | ||
sent back for these requests. | ||
--> | ||
<schemaFactory class="ClassicIndexSchemaFactory"/> | ||
|
||
<updateHandler class="solr.DirectUpdateHandler2"> | ||
<updateLog> | ||
<str name="dir">${solr.core0.data.dir:}</str> | ||
</updateLog> | ||
</updateHandler> | ||
|
||
<!-- realtime get handler, guaranteed to return the latest stored fields | ||
of any document, without the need to commit or open a new searcher. The current | ||
implementation relies on the updateLog feature being enabled. --> | ||
<requestHandler name="/get" class="solr.RealTimeGetHandler"> | ||
<lst name="defaults"> | ||
<str name="omitHeader">true</str> | ||
</lst> | ||
</requestHandler> | ||
|
||
<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" /> | ||
|
||
<requestDispatcher handleSelect="true" > | ||
<requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" formdataUploadLimitInKB="2048" /> | ||
</requestDispatcher> | ||
|
||
<requestHandler name="standard" class="solr.StandardRequestHandler" default="true" /> | ||
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" /> | ||
<requestHandler name="/update" class="solr.UpdateRequestHandler" /> | ||
|
||
<requestHandler name="/admin/ping" class="solr.PingRequestHandler"> | ||
<lst name="invariants"> | ||
<str name="q">solrpingquery</str> | ||
</lst> | ||
<lst name="defaults"> | ||
<str name="echoParams">all</str> | ||
</lst> | ||
</requestHandler> | ||
|
||
<!-- config for the admin interface --> | ||
<admin> | ||
<defaultQuery>solr</defaultQuery> | ||
</admin> | ||
|
||
</config> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
#Fri Mar 29 13:50:09 UTC 2024 | ||
schema=schema.xml | ||
dataDir=data | ||
name=usage | ||
name=metrics | ||
config=solrconfig.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
log_manager/templates/search/indexes/log_manager/logprocessedrow_text.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
{{ object.title }} | ||
{{ object.body }} | ||
{{server_time}} | ||
{{browser_name}} | ||
{{browser_version}} | ||
{{ip}} | ||
{{latitude}} | ||
{{longitude}} | ||
{{action_name}} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class MetricsConfig(AppConfig): | ||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "metrics" |
Empty file.
Oops, something went wrong.