Questions tagged [booleanquery]

This tag is used in information retrieval scenario when you write a query with multiple rules combined with bolean conjunctive predicates.

This tag is used in information retrieval scenario when you write a query with multiple logical rules combined with bolean conjunctive predicates, e.g., AND, OR, NOT.

131 questions
0
votes
0 answers

Luncen Query Parser?

I was learning to seach query performed on a text document. But language is not English. I have to learn and use it, But BooleanQuery and MultiFieldQueryParser not run in Lucene 6.2.0. example: Sentence Query : Tôi đang đi học Document: ..Tôi là một…
drag
  • 73
  • 7
0
votes
1 answer

ElasticSearch Bool Fitler doesn't seem to work with string terms

I am trying to execute a query with a Boolean filter, but it seems like it doesn't work when the type is a string. Example: When I send this payload to my _search endpoint: { "query": { "filtered": { "filter": { …
0
votes
1 answer

BooleanQuery setDisableCoord

I have no idea what setDisableCoord is and what value should I set for it. I understand coord in a simple query (e.g. TFIDF query). But don't understand what it means in a Boolean query consisting of several queries. To give some context, assume…
Shayan
  • 2,758
  • 7
  • 36
  • 55
0
votes
2 answers

Bool query in array field

I have a very particular issue concerning querying over a boolean field and a string field which are nested to an array field. The index mapping is as follow: indexes :string_field_1, type: 'string' indexes :string_field_2, type: 'string' indexes…
0
votes
0 answers

Checking if search query is for boolean mode

How should I check that a query is supposed to be for a MySQL Boolean Mode FULLTEXT search instead of a NATURAL MODE search? Detecting special character operators such as +, - using regex or something else?
chintogtokh
  • 803
  • 1
  • 10
  • 25
0
votes
1 answer

Hierarchical scoring Lucene, OR term treatment

I was trying to translate an interest profile into some Lucene query. Given a title term and some expansion term, in JSON format, such as {"title":"Donald Trump",…
Xin Qian
  • 51
  • 1
  • 1
  • 4
0
votes
1 answer

Regex for matching incorrect AND OR logic

I need a regex that can match on an incorrect AND / OR logic statements but not if they are in quotes for example: No matches should be found in: MAR AND SATURN MAR OR SATURN "MAR AND SATURN" There won't be any matches if AND or OR have at least 1…
Imran Azad
  • 1,008
  • 2
  • 12
  • 30
0
votes
1 answer

Nest ElasticSearch: Boolean Search using Nested Query and Nested Objects

I am using Nest Elastic and building the query for a Boolean search using Head plugin , i am combining multiple queries Notes about DB Structure and Elastic Mapping Each document in the database is linked to specific profileId which in turn has…
Hussein Salman
  • 7,806
  • 15
  • 60
  • 98
0
votes
2 answers

How to negate a solr query with the surround query parser

Is there a way to negate a solr surround query? I'm using it in a fq field, if that gives me more options for negating the results. fq={!surround}fieldName:2w(foo,bar) I normally negate a filter by prepending '-', e.g., fq=-fieldName:baz But when…
ajo2995
  • 1
  • 3
0
votes
0 answers

Using Sumproduct to count cells between dates not working

I have a tracking sheet. It has information which spans months, so I'm creating a reporting sheet to summarise based on month to month, using sumproduct, because I can't use countifs across closed workbooks in Sharepoint. I have used the following…
LincM
  • 17
  • 9
0
votes
1 answer

lucene ranking with booleanquery - determining quality of hits

I am using a booleanquery constructed of termqueries, all on the same field, that are all set on 'SHOULD' at the moment. I have tried to figure out how the ranking of the ScoreDoc[] result object works for this query, but haven't been able to find…
rinmic
  • 35
  • 1
  • 7
0
votes
1 answer

ElasticSearch Lucene full text search using Java API

I've recently started using ElasticSearch. I've managed to integrate them successfully, but I find the search API rather complex and confusing. The Java API is not too helpful either. How is it possible to search the following JSON for the fieldname…
Jay
  • 471
  • 1
  • 4
  • 11
0
votes
4 answers

ASP.NET MVC5 Entity Framework 6 get bool = true and bool = false LINQ

I have a table that I am filtering on. There is a filter for values 'include' which can be true or false. I have a filter that has 3 options: true, false, & all. So, when the filter is true, it should return rows where include = 'true'; when the…
Rhys Stephens
  • 889
  • 3
  • 20
  • 36
0
votes
1 answer

Lucene.Net filter not working with boolean value

I have stored products' showonhomepage value as doc.Add(new Field("ShowOnHomePage", p.ShowOnHomePage.ToString(), Field.Store.YES, Field.Index.ANALYZED)); And trying to get results depending on that parameter like below if (categoryId != 0)//this…
Nitin Varpe
  • 10,450
  • 6
  • 36
  • 60
0
votes
1 answer

elasticsearch combine multiple queries

I have an elasticsearch index for storing information about people. To find specific persons I have some queries, each of them works alone but when I combine them using Bool Query I get an error. One of the queries is a fuzzy search for the name { …
obs
  • 797
  • 3
  • 14
  • 37
1 2 3
8
9