Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 28 2018 12:14

    emmanuel-keller on master

    Update to Configuration using P… (compare)

  • May 28 2018 10:01

    emmanuel-keller on master

    Add JDK9 build on Travis (compare)

  • Apr 23 2018 16:12

    emmanuel-keller on master

    [maven-release-plugin] prepare … (compare)

  • Apr 23 2018 16:11

    emmanuel-keller on v1.4.0

    (compare)

  • Apr 23 2018 16:11

    emmanuel-keller on master

    [maven-release-plugin] prepare … (compare)

  • Feb 27 2018 21:12

    emmanuel-keller on master

    Restore ServiceBuilder (compare)

  • Feb 27 2018 20:03

    emmanuel-keller on master

    Remove deprecated registering m… (compare)

  • Feb 27 2018 18:08

    emmanuel-keller on master

    Add missing crawlers, update to… (compare)

  • Feb 04 2018 22:53

    emmanuel-keller on master

    Update TableManager creation (compare)

  • Dec 09 2017 23:46

    emmanuel-keller on master

    Introduce WebAppManager.Builder (compare)

  • Oct 18 2017 21:47

    emmanuel-keller on master

    Update deps (compare)

  • Sep 30 2017 22:02

    emmanuel-keller on master

    Remove dependency to HttpClient (compare)

  • Sep 26 2017 14:05
    Zhizhaochen starred qwazr/QWAZR
  • Sep 25 2017 15:52

    emmanuel-keller on master

    [maven-release-plugin] prepare … (compare)

  • Sep 25 2017 15:52

    emmanuel-keller on v1.3.0

    (compare)

  • Sep 25 2017 15:52

    emmanuel-keller on master

    [maven-release-plugin] prepare … (compare)

  • Sep 23 2017 09:41

    emmanuel-keller on master

    Fix configuration test issue (compare)

  • Sep 23 2017 09:32

    emmanuel-keller on master

    Add info on failed test (compare)

  • Sep 23 2017 08:46

    emmanuel-keller on master

    Update log4j (compare)

  • Sep 22 2017 13:40

    emmanuel-keller on master

    Remove unused lib (compare)

Bitchute
@BitChute_gitlab
also I was wondering if the support packages for opensearchserver would cover qwazr ?
Emmanuel Keller
@emmanuel-keller
Hello, qwazr is the new core engine used by opensearchserver
qwazr will remain a jar library, and opensearchserver will wrap it, providing executable, docker images, etc ...
The opensearchserver support packages cover qwazr as well. We should unveil oss 2.0 alpha this week, hopefully ...
Bitchute
@BitChute_gitlab
ah I see thanks

in the meantime I'd like to run some tests against qwazr if possible but the current version seems to fail on the example here http://www.qwazr.com/search/usage/webservice.html

The first steps work but then when it comes to performing the search it fails with an exception. I'm wondering if the document is out of date or if the version I should checkout a different version of the code

curl -XPOST -H 'Content-Type: application/json' -d @1test/my_search.json "http://localhost:9091/indexes/my_schema/my_index/search"
{
"status_code" : 500,
"message" : "Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'query' that is to contain type id (for class com.qwazr.search.query.AbstractQuery)\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@79429c55; line: 1, column: 769] (through reference chain: com.qwazr.search.index.QueryDefinition[\"query\"])",
"exception" : "com.fasterxml.jackson.databind.JsonMappingException",
Emmanuel Keller
@emmanuel-keller
The documentation has to be updated with the following last change
"query": {
"type": "BooleanQuery",
"clauses": [
{
"occur": "must",
This shoud be replaced by
"query": {
"BooleanQuery": {"clauses": [
{
"occur": "must",
Bitchute
@BitChute_gitlab
thank you very much
Emmanuel Keller
@emmanuel-keller
the type is no more there
you should subsitute with the name of the query
Bitchute
@BitChute_gitlab
Hello, I was trying the qwazr example here which works well as it is but can you tell me how I might add a facet selection e.g. for the category science?
https://www.qwazr.com/search/usage/webservice.html
Bitchute
@BitChute_gitlab

I tried this

{
"start": 0,
"rows": 10,
"query": {
"FacetPath": {
"dimension": "category",
"path": [ "science" ]
}
},
"returned_fields": [
"*"
],
"sorts": {
"$score": "descending"
}
}

curl -XPOST -H 'Content-Type: application/json' -d @facet_search.json "http://localhost:9091/indexes/my_index/search"

{
"timer" : {
"start_time" : "2020-09-27T05:35:50.258+00:00",
"total_time" : 1
},
"documents" : [ ],
"facets" : { },
"total_hits" : 0
}

but while it seems to accept the syntax it doesn't give the result I was expecting

Bitchute
@BitChute_gitlab
aha, I think I needed to change the field type to SortedSetDocValuesFacetField
Emmanuel Keller
@emmanuel-keller
Hello, yes, absolutely, there is an easy way to do that with SmartField, let me point you to the right API
The missing information is the facet property that should be set to true
Emmanuel Keller
@emmanuel-keller
The current documentation is for 1.4.1. With 1.5.0, we introduced what we called SmartField. The documentation will be updated this week, as 1.5.0 will be released now
So, if you want facets on the Category field, here is the definition of the field
"category": {
"type": "TEXT",
"facet": true,
"index": true
},
You should pass this {
"type": "TEXT",
"facet": true,
"index": true
}
Replacing my_field by category. You then have to reindex your data
With 1.5.1 you will not need to reindex data anymore, that will be handled automatically as soon as the schema change
Emmanuel Keller
@emmanuel-keller
@BitChute_gitlab Let me know if it makes sense
Bitchute
@BitChute_gitlab

thank you that makes sense. One other issue I'm having is I'm struggling to get the json syntax correct to combine a text field search with a facet field search.

The old documentation has clauses, has that been replaced?

Emmanuel Keller
@emmanuel-keller
Yes, we changed the structure of the queries. We don't use anymore the "type" attribute, It has been replaced by the "name" of the object.
So previously you would use this:
{
"query": {
"type": "BooleanQuery",
"clauses": []
}
}
Now you should use this:
{
"query": {
"BooleanQuery": {
"clauses": []
}
}
}
Bitchute
@BitChute_gitlab
thank you
Emmanuel Keller
@emmanuel-keller
Hopefully the doc will be up to date with those changes in the next coming days
Bitchute
@BitChute_gitlab

That is working, BoolQuery was missing in the jar I have but Bool worked

{
"start": 0,
"rows": 10,
"query": {
"Bool": {
"clauses": [
{
"occur": "should",
"query": { "SimpleQueryParser": { "analyzer": "ascii", "query_string": "Article", "weights": { "title": 1 } } }
},
{
"occur": "should",
"query": { "FacetPath": { "dimension": "category", "path": [ "science" ] } }
}
]
}
},
"returned_fields": [
"*"
]
}

Bitchute
@BitChute_gitlab
We have just deployed our new search which uses Qwazr on the back end
Bitchute
@BitChute_gitlab
we can probably give you guys some links and put up some info about your project if you want it, nothing required in return
Emmanuel Keller
@emmanuel-keller
@BitChute_gitlab Congraluations !
Emmanuel Keller
@emmanuel-keller
@BitChute_gitlab Great implementation! Thanks for letting us know. We will appreciate any "powered by" link :D We will probably add a page with implementation examples in the website, if you don't mind, we will be happy to add a link to your website
Bitchute
@BitChute_gitlab
will do, and that would be great, thank you
Bitchute
@BitChute_gitlab
is it currently possible to search on a range of integers? I.e. how can we query a SortedIntDocValuesField
Emmanuel Keller
@emmanuel-keller
We are going to provide a generic RangeQuery that manage to use the low level Lucene query in 1.5.1. But for now, you should use the low level one https://github.com/qwazr/search/blob/master/src/main/java/com/qwazr/search/query/SortedSetDocValuesRangeQuery.java
The json syntax properties of the query are the following:
{
"SortedSetDocValuesRangeQuery": {
"field": "my_field",
"lower_value": "a",
"upper_value": "z",
"lower_inclusive": true,
"upper_inclusive": false
}
}
Bitchute
@BitChute_gitlab
thank you
Emmanuel Keller
@emmanuel-keller
thanks for your support by the way !
Bitchute
@BitChute_gitlab
no problem, that 'powered by' is due to go in the next release