Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:14
    Hrle97 opened #1148
  • 11:09
    Hrle97 commented #1147
  • 10:50
    Hrle97 commented #1147
  • 10:12
    joemcelroy commented #1147
  • 09:40
    Hrle97 edited #1147
  • 09:39
    Hrle97 opened #1147
  • Oct 01 16:25
    github-actions[bot] commented #1096
  • Oct 01 16:24
    github-actions[bot] commented #985
  • Oct 01 16:24
    github-actions[bot] commented #1095
  • Oct 01 16:23

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 01 16:23
    dependabot[bot] commented #1096
  • Oct 01 16:23
    stale[bot] closed #1096
  • Oct 01 16:22

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 01 16:22
    dependabot[bot] commented #985
  • Oct 01 16:22
    stale[bot] closed #985
  • Oct 01 16:22

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 01 16:22
    dependabot[bot] commented #1095
  • Oct 01 16:22
    stale[bot] closed #1095
  • Sep 27 09:39
    renovate[bot] edited #954
  • Sep 24 08:46
    renovate[bot] edited #954
med
@mermand
hi. how can i add sort property in defaultquery?
prog20901
@prog20901
i come across this beautiful one - https://github.com/Nozbe/WatermelonDB - is it good for the above development..please suggest...Demo - https://nozbe.github.io/WatermelonDB/Demo.html
huseyingoztok
@huseyingoztok
Hello friends. How to export a table to excel? Is there any example? Can you help me?
prog20901
@prog20901
Can searchkit integrates https://github.com/jvilk/BrowserFS - looks it supports several back-ends...Please kindly integrate if possible.
prog20901
@prog20901
How to store files and index in searchkit - persist permantently ???
any example with indexedb or pouchdb or watermelondb
huseyingoztok
@huseyingoztok
Hello friends. How do I prevent the All filter from appearing in the Searchkit tabs component?
jacksonp2008
@jacksonp2008
Basic searchkit doesn't seem to do complex queries like 'apples AND oranges NOT pears', any one know where I can change this behavior?
jacksonp2008
@jacksonp2008
Is there a better place/community to ask questions? Nothing seems to be happening here.
jacksonp2008
@jacksonp2008
its like a ghost town in here.
GIUSEPPE FERRARO
@gferraro86
Hi there, I just started playing with searchkit and elasticsearch ... I have a strange behavior with Pagination. I put <Pagination showNumbers /> in my code but it does not renders ... have you ever had this problem?
John Ryan
@omulriain
@jacksonp2008 I gave up on trying to get any kind of help on this project
Prashant Rajoriya
@prashant-rajoriya
Does the searchkit support the latest version of elastic-search 7.5 ?
GIUSEPPE FERRARO
@gferraro86
@prashant-rajoriya it seems to working fine with the version 2.4.1 https://libraries.io/npm/searchkit
Prashant Rajoriya
@prashant-rajoriya

@gferraro86 this is query generated by searchkit on v 2.4.1

{
    "query": {
        "filtered": {
            "filter": {
                "term": {
                    "is_deleted": false
                }
            }
        }
    },
    "aggs": {
        "type4": {
            "filter": {
                "match_all": {}
            },
            "aggs": {
                "type": {
                    "terms": {
                        "field": "type",
                        "size": 50
                    }
                },
                "type_count": {
                    "cardinality": {
                        "field": "type"
                    }
                }
            }
        },
        "status5": {
            "filter": {
                "match_all": {}
            },
            "aggs": {
                "status": {
                    "terms": {
                        "field": "status",
                        "size": 10
                    }
                },
                "status_count": {
                    "cardinality": {
                        "field": "status"
                    }
                }
            }
        }
    },
    "size": 50,
    "sort": [
        {
            "_score": {
                "order": "desc"
            }
        }
    ],
    "highlight": {
        "fields": {
            "uid": {}
        }
    }
}

the response from backend :

{
    "error": {
        "root_cause": [
            {
                "type": "parsing_exception",
                "reason": "no [query] registered for [filtered]",
                "line": 3,
                "col": 21
            }
        ],
        "type": "parsing_exception",
        "reason": "no [query] registered for [filtered]",
        "line": 3,
        "col": 21
    },
    "status": 400
}
meshek2015
@meshek2015
Hi team thanks for the application.. I am exploring search kit. I have a question... Instead of passing the elastic search URL can I pass a function that does a query and return back the data to searchkitmanager
Lior Kesos
@liorkesos
Hi! Has anybody connected searchkit to graphql?
Nebula83
@Nebula83
Hello, I am setting up my first searchkit app but I'm having the hardest time trying to change the queryBuilder of the searchbox. What I want is to change the queryBuilder based on a checkbox on the UI (simple or advanced) but somehow rerendering the Searchbox component does not update the queryBuilder. Any hints?
dsrsuren
@dsrsuren
Hello I am setting up my first searchkit app, I have search box & few refinementListFilters. As soon as the user select some option either in search box or facet filter I would need to get the latest query built. how can i do that ? I tried few with Accessors but I could not succeed, some one can help pls ?
wboleksii
@wboleksii
Hi, is there a way to make async calls inside QueryProcessor? I need top modify my query based on some external data
shivams596
@shivams596
The pagination, hitCount, PageSizeSelector doesn't seem to work properly with SearchKit 2.4.1-alpha.4
So please use npm install searchkit@2.4.1
Lecherbonnier
@Fluorz
Hello @GregoryPotdevin est-ce que la feature infinite scroll est dispo ?
prog20901
@prog20901
how to create a blog UI full of text files or documents or text categories with quick search with searchkit......ex: https://table.branham.org/#/main -- i want a website using searchkit where i want to import huge text files and quickly search for the info.. Please advise....It can be log files, it can be any text files....etc.,
Harry Freeborough
@hfreeb
Hi all, I've been trying to fix query params not working for StatefulAccesors nested inside a hit component, and found that the state from query params only propagates through to accessors added in the initial load.
Removing the isInitialLoading() check from https://github.com/searchkit/searchkit/blob/f17c4a09f6c3058190b649fabb18561efb520089/packages/searchkit/src/components/search/hits/src/Hits.tsx#L137 fixes it, but how safe is this to do?
Arif Khan
@khanprog

Hi guys I am pretty new to elasticsearch and react I installed ealsticsearch and when I save the data from backend I save the data tomysql and elasticsearch as well then in react I use searchkitManager to get the data but I am stuck here because I am not able to get the data using searchkitManager
here is a piece of code in react

let apiUrl= 'http://localhost:9200/api/v1' // what link should I pass url to elasticsearch or url to my backend
const searchkit = new SearchkitManager('/', {
  searchUrlPath: `${apiUrl}/search?rest_total_hits_as_int=true`,
});

Most of the time I will get the error of Error Code 400 or 405
Any kind of help will be appreciated

as for the link should I use something like http://localhost:9200/indexName/' or what is the pattern
Arif Khan
@khanprog
servers
React Frontend: http://localhost:3000/
Golang Backend: http://localhost:3006/api/v1
ElasticSearch: http://localhost:9200/
Milio
@Silvernetix_gitlab

Any reason to why all the documentation relating to each accessor is missing ?
https://docs.searchkit.co/stable/core/Accessors.html

I urgently need documentation on

  • SortingAccessor
  • QueryAccessor

I wish all searches to return sorted (latest first) based on the date of a field.
I dont want the user to select the sorting order, it has to be sorted by default

How do I do this ?

Fathi Rida
@FathyRida
Hi guys, any one can help me please, how can I use operator="AND" with HierarchicalMenuFilter component and thank you in advance
Teagan
@tkwidmer
Hi there. Is there any way to use something like Semantic UI, and wrap it in any way. I prefer the look of Semantic UI in terms of the inputs, but would still love to use the SearchkitManager and provider.
consde
@consde
Hey, does anyone know how I can have access to the query terms entered in the search box? How can I save them in a variable? I need to click on a button and then open a window with the url MYURL + search?q=linux. I just need to access the query values. Thank you in advance.
ACPrice
@ACPrice
@consde I'm not sure this is the best way, but I think you can just write a custom queryBuilder function that does nothing to the query (i.e. returns it as is), just runs some code to save it elsewhere beforehand.
f2xx-blip
@f2xx-blip
Hey, I am using token to authenticate my request to ES. I want a error event listener, so that when my access token expires I can request a new access token from ES. How to achieve this ?
Milio
@Silvernetix_gitlab
This has been no help at all. I wish everyone the best of luck.
Jerry Fu
@jfoo1984
Is there any way to call reloadSearch from a child component? I have a use case where we want the listComponent that we pass into the Hits component to reload the search after an API call is made. Explored using a callback, but it seems there's no way to add to the props passed to listComponent, and it doesn't seem like the searchkitmanager reference is passed into the list component
Jon Hughes
@ducksinacolumn_gitlab
Sorry for what I assume is a very simple question, but where is the data coming from for this demo? http://demo.searchkit.co/taxonomy
Frank
@frank7huysen
Hi, how do I get the loading state of searchkit in a functional component. Because searchkit.loading is only changed once. However, if I want to show a loader indicator on search it doesn't update?
Tristan Hall
@TrimHall

Hi,

I'm experiencing an issue where the URL params are removed when the value of the search input is changed - seems to be happening relatively inconsistently. Is this a known issue and if so is there a planned fix or a known workaround?

Silviu Bogan
@silviubogan
Hello! How can I add an "All" option at the beginning of a RefinementListFilter with the operator set to "OR"? I use the listComponent Tabs. Thank you!
Silviu Bogan
@silviubogan
My attempt is this but I don't know how to build the object with the key 'All' so that it actually works and persists between page reloads.
const CustomTabs = (props) => {
  const arr = [{ key: 'All' }, ...props.items];

  return <Tabs {...props} items={arr} />;
};
Silviu Bogan
@silviubogan
I solved this issue using the MenuFilter component. Thank you!
Silviu Bogan
@silviubogan
Hello, again! How can I remove a single specific filter, like the end user would in the GroupedSelectedFilters component by clicking the X button, but programmatically? I do not know how to change the query. The searchkit.setQueryProcessor does not give me the information about the selected filter and I do not know how to change the query. I think I will try to change the URL, but I think this will not work. Thank you!
Silviu Bogan
@silviubogan

This is how I made it work by reloading the page (I know it is very ugly and not well crafted):

const newLoc = window.location.href
  .replace(/type\[\d+\]=[a-zA-Z0-9_]+/g, '')
  .replace(/&&/g, '&')
  .replace(/\?&/g, '?')
  .replace(/[&?]$/, '');
if (newLoc !== window.location.href) {
  window.location.href = newLoc;
}

If there is a way to make this work without reloading the page, please let me know. Thank you!

Munkhdemberel
@Munkhdemberel
I am using setQueryProcessor in next js dynamic routing by after route changed it won't updating filter. Can you help us to refilter?
Silviu Bogan
@silviubogan
Hello! I solved my issue as presented here: https://stackoverflow.com/a/64105974/258462. Thank you!
Munkhdemberel
@Munkhdemberel
@silviubogan Thanks a lot! It's helped!
Kundan Ray
@kundan_ray_a_twitter
Hi
Can we implement the search input box that could work on logical operator like 'OR', 'AND', 'NOT'?
Silviu Bogan
@silviubogan
Hello! If anyone can help me with this, I would be very grateful: https://stackoverflow.com/questions/64067150/how-to-use-an-array-index-inside-a-field-name-for-refinementlistfilter Currently I am starting to study the docs and and the source code of SearchKit, and also the concepts of ElasticSearch but this will take some time so if anyone shortens the duration of this task, thank you!