Skip to content
/ social Public

Add social layout to your kanvas application

Notifications You must be signed in to change notification settings

bakaphp/social

Repository files navigation

Kanvas Social

Latest Stable Version Total Downloads Latest Unstable Version Tests

Kanvas Social package , allows you to implement a social layer to any kanvas app.

What do we consider a social layer?

  • Follow Entity
  • User Interactions
  • Comment System
  • User Feeds
  • Group
  • Channels
  • Comment Interactions

Indexing Elastic Messages

To create a new index for messages use the following command:

php cli/cli.php social indexMessages

Erasing the messages index

In case you want you want to erase the messages index, in your terminal, execute the following:

 php cli/cli.php social eraseMessages

Elastic Configuration

Update total fields limit for message index

curl -s -XPUT https://{elastichost}/messages/_settings  -H 'Content-Type: application/json' -d '{"index.mapping.total_fields.limit": 100}'

Allow all object properties of a specific index to be nested , allowing use to use multi nested level query proper.index.property.index Example

{{URL}}/{{VERSION}}/messages?q=(chs.slug:test-uuid,rlmsg.activities_status.id:2)&format=true
curl -s -XPUT https://{elastichost}/_template/social_messages  -H 'Content-Type: application/json' -d '{
"index_patterns": [
    "message*"
  ],
  "mappings": {
      "dynamic_templates": [
        {
          "nested": {
            "match_mapping_type": "object",
            "mapping": {
              "type": "nested"
            }
          }
        }
      ]
  }
}'

Running Tests:

composer test

About

Add social layout to your kanvas application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages