Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c3564def
Commit
c3564def
authored
Jan 28, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
Jan 28, 2015
Browse files
Merge "Add new index for the field 'itemid' on 'search_elasticsearch_queue'"
parents
d5672034
e1ad58d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/search/elasticsearch/db/install.xml
View file @
c3564def
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
<KEYS>
<KEYS>
<KEY
NAME=
"search_elasticsearch_queuepk"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"search_elasticsearch_queuepk"
TYPE=
"primary"
FIELDS=
"id"
/>
</KEYS>
</KEYS>
<INDEXES>
<INDEX
NAME=
"itemidix"
UNIQUE=
"false"
FIELDS=
"itemid"
/>
</INDEXES>
</TABLE>
</TABLE>
</TABLES>
</TABLES>
</XMLDB>
</XMLDB>
htdocs/search/elasticsearch/db/upgrade.php
0 → 100644
View file @
c3564def
<?php
/**
*
* @package mahara
* @subpackage elasticsearch
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
*
*/
defined
(
'INTERNAL'
)
||
die
();
function
xmldb_search_elasticsearch_upgrade
(
$oldversion
=
0
)
{
if
(
$oldversion
<
2015012800
)
{
// Adding indices on the table search_elasticsearch_queue
$table
=
new
XMLDBTable
(
'search_elasticsearch_queue'
);
$index
=
new
XMLDBIndex
(
'itemidix'
);
$index
->
setAttributes
(
XMLDB_INDEX_NOTUNIQUE
,
array
(
'itemid'
));
add_index
(
$table
,
$index
);
}
return
true
;
}
htdocs/search/elasticsearch/version.php
View file @
c3564def
...
@@ -13,5 +13,5 @@ defined('INTERNAL') || die();
...
@@ -13,5 +13,5 @@ defined('INTERNAL') || die();
$config
=
new
stdClass
();
$config
=
new
stdClass
();
$config
->
name
=
'elasticsearch'
;
$config
->
name
=
'elasticsearch'
;
$config
->
version
=
201
3030503
;
$config
->
version
=
201
5012800
;
$config
->
release
=
'1.0.
0
'
;
$config
->
release
=
'1.0.
1
'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment