GithubHelp home page GithubHelp logo

chatpal-search's People

Contributors

ja-fra avatar mrsimpson avatar tkurz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatpal-search's Issues

Configuration page not loading if chatpal has just been added

Without any configuration in the chatpal-setting (CHATPAL_CONFIG), the UI for editing the configuration doesn't even show up. This is due to the fact that the configuration is immediately getting validated - and the default one can never be valid from the very beginning.

Finding messages by other properties than message-text

Motivation

As a user, I know a particular property of a message, e. g. by whom and when it has been sent.

Expected behavior

I want to use this property to limit the results

Proposal

Either visualize the facets or accept a formatted search string, such as date:2017-12-12

How do I add the chatpal search module correctly to my Rocket.Chat project repo?

After cloning the project from git and adding the module via meteor add chatpal:search new files are created within the Rocket.Chat folder.

should all these files just be added as usual:
git add .
git commit -m "adding chatpal search"

or should this be added as a module
git submodule add https://github.com/redlink-gmbh/chatpal-search.git packages/chatpal-search

Suggestions

Motivation

As a user, I don't really know the terms to search for

Expected behavior

I want to enter sea and get a proposal for searching for "search"

Actual behavior

There is no autocompletion

Proposal

Check google's type-ahead ;)

Changing URL is only reflected after restart

As an admin, I want to be able to modify the target URL for the search at runtime

Expected behavior

The search requests are being routed to the new URL immediately

Actual behavior

Request is routed to the old URL until the system is restartet

Search a single channel

Currently, the search functionality searches in all existing channels. I would like to restrict the search to the current channel. Maybe a simple checkbox?

Chatpal search does not work with Smarti 0.6.1

The results of Smarti 0.6.1 do not fit to ChatPal Search:

chatpal-search fails by executing:

/packages/chatpal-search/server/service/search_service.js

static alignResponse(result) {
  const docs = [];
  result.response.forEach(function(doc) {
    docs.push({
      type: doc.type,
      subtype: 'c',
      room: doc.meta_channel_id[0],
      id: doc.message_id,
      text: doc.message,
      highlight_text: result.highlighting[doc.id] ? result.highlighting[doc.id].message[0] : undefined,
      user: doc.user_id,
      date: doc.time
    });

    return {
      numFound: result.meta.numFound,
      start: result.meta.start,
      docs
    };
  }
});

The Smarti response of:
http://localhost:8080/rocket/localhost/search?sort=time%20desc&fl=id,message_id,meta_channel_id,user_id,time,message,type&hl=true&hl.fl=message&df=message&q=braunschweig

does not return the JSON-Format expected by chatpal search.
E.g.

  • result.response is undefined
  • the requested return fields: id,message_id,meta_channel_id,user_id,time,message,type do not persist in the response of Smarti

Not quiet sure if this has to be solved within chatpal or within Smarti.

I also commented this in:
redlink-gmbh/smarti#121

Track searches with Matomo (Piwik)

Matomo, formerly known as Piwik, is able to track site searches. It would be beneficial if Motomo can be used to analyze searches by chatpal in Rocket.Chat. Keywords should be tracked and mapped to users in order to know what people are looking for.

You can find a documentation on Matomos site search capabilities here: https://matomo.org/docs/site-search/

Configuration option for "complete word only"

Motivation

As a user, I'm lazy and don't want to type the complete word

Expected behavior

I want to find search also when only entering sea

Actual behavior

Only complete words are found, unless I enter an * as suffix

Proposal

As this has an impact on performance, add a configuration option. I don't know whether this should be a user preference of a global one though

Option to disable Chatpal

As an admin, I want to be able to deactivate Chatpal manually.
If this has been done, the search input box shall not be visible

Simplify Solr set-up and configuration

As a administrator who has no Solr Know-how, I want to be able to set up Chatpal search quickly on my cluster.

Suggestion: Provider a dockerfile with a pre-configured Solr-core-configuration matching Chatpal-search's requirement

Add search for livechat messages

I searched for a message which was posted in livechat, but I was not able to find it by chatpal.

It would be really cool if chatpal is able to search through livechat rooms and messages as well. Currently this option is not supported - or I am not able to find a way to do it ;-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.