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
1
vote
2 answers

Liferay Search over structured webcontent matching attachment's term

We have a webcontent structure “S” with “Document and Media” field. We have created a webcontent named « W » based on the previous structure « S » with a word file attachment named “a” with “hello” text inside of it. We know that…
Clemaul
  • 11
  • 3
1
vote
1 answer

ElasticSearch boolean query to Solrj query

is there any tool or easy technique to migrate complex ES boolean query to Solr/ Solrj query. I know kind of that must => AND should => OR needs to be changed. Query sample here - { "bool": { "must": [ { "term": { …
insomniac
  • 155
  • 2
  • 15
1
vote
2 answers

building compound query in elasticsearch

I was trying to search the following case using BoolQueryBuilder in elasticsearch select * from students where (name = "XXX" and rollno = 1) or (name = "YYY" and rollno = 2) I have to build query builder for it. Can anyone suggest me the…
1
vote
1 answer

Wha's the meaning and significance of 'path' in BDDs or FDDs?

I read a paper, named Multilevel logic synthesis based on functional decision diagrams, which is about Functional Decision Diagrams(FDDs), that is a variant of Binary Decision Diagrams(BDDs). In this, a paragraph mentions 'path': As an important…
1
vote
0 answers

Elasticsearch 5.6 combining constant score and bool queries

I'm currently working on a search engine for a website which is using a PHP API querying into an Elasticsearch 5.6 index. I have been stuck for a long while on a specific query and that's why I am looking for some help from the community. Let me…
1
vote
2 answers

Pandas pivoted dataframe and multi-column Boolean comparison

I have a pivoted dataframe of the form Price Units Buyer B G S B G S Idx 1 0 1.51 0 0 11 0 2 2.32 1.32 0 21 13 0 3 0 0 1.44 …
Spinor8
  • 1,587
  • 4
  • 21
  • 48
1
vote
1 answer

Solr query with multiple negations

On Solr 6.5.1, I have a *_txt_en field and a string document-type field. On these fields, I would like to build a query of the form: Match all documents of a certain document-type, where: Certain phrases ("phrase one", "phrase two") must occur in…
tkja
  • 1,950
  • 5
  • 22
  • 40
1
vote
1 answer

ElasticSearch 5.x should query vs filtering

I have a problem with results come from an ES query. Filtering a query gives some confusing results, and I don't know how to overcome of it. So: { "query":{ "bool":{ "should":[ { "multi_match": …
1
vote
3 answers

Elasticsearch - How to guess important words in queries?

Suppose we are executing two queries like below on our Available Job positions Index: PHP Developer Ruby Developer When performing a simple boolean AND query positions like PHP Programmer will be excluded due the lack of presence for developer.…
1
vote
2 answers

How to index a wide table of booleans

My question is on building indexes when your client is using a lot of little fields. Consider a search of the following: (can't change it, this is what the client is providing) SKU zone1 zone2 zone3 zone4 zone5 zone6 zone7 zone8 …
Rob Y
  • 214
  • 1
  • 9
1
vote
1 answer

Elastic Search 2.0/2.1 Issue with Highlighter and the Bool Query

I am having an issue with highlighting in Elastic 2.0 and 2.1 - it's returning more information than I think it should. I am constructing a bool query (the filtered query keyword is deprecated in 2.0+ so I am trying to update my syntax). I am…
Dexterama
  • 35
  • 6
1
vote
2 answers

Combining queries using bool in Nest Elasticsearch

I need to get the documents from ES using NEST client with multiple And/OR conditions on two fields. My query is as: SELECT * FROM Document WHERE (Year!=2012 && Year!=2013 ) AND (Format=".pdf" || Format=".prt" || Format=".jpeg") below is my…
Mahsa
  • 341
  • 3
  • 17
1
vote
1 answer

Pandas multiindex boolean indexing

So given a multiindexed dataframe, I would like to return only rows that satisfy a condition for all levels of the lower index in a multi index. Here is a small working example: df = pd.DataFrame({'a': [1, 1, 2, 2], 'b': [1, 2, 3, 4], 'c': [0, 2,…
pdevar
  • 323
  • 2
  • 3
  • 11
1
vote
1 answer

Elasticsearch seemingly random scoring and matching

I am using a bool search to match against multiple fields. The fields have been analyzed at index time with multiple filters but mainly use of edge_ngram. The issue I'm having is that scoring seems to be up in the air. I would expect my search for…
George Reith
  • 13,132
  • 18
  • 79
  • 148
1
vote
1 answer

does vkontakte newsfeed search support boolean operators?

For example for: https://api.vk.com/method/newsfeed.search.json?q=moscow What can I do with the search query? Does it support AND, OR, etc? Can I specify exact terms in quotes, e.g. q="Big Ben" ? Is there a page where this is…
mbz
  • 11
  • 2
1 2 3
8 9