Elasticsearch order terms aggregate by score

I'm new to ElasticSearch. Previously I've used it only with Django-Haystack, in a very limited fashion, and have never talked to ES directly. Currently, I have an ElasticSearch (5.x if this matters) index with a few documents. I'm using Python + ela...
more »

2017-05-11 19:05 (2) Answers

Cakephp 3 Search plugin get related fields

I'm using the Easy model searching plugin from FriendsOfCake and use it to search into my table data. It's working very good but now I wan't to get related items by a foreign key that matched with the foreign key of the founded item. On this moment...
more »

2017-05-10 10:05 (0) Answers

VBA Type mismatch in Find method

I'm trying to create a function that will input "Yes" in the 11th column in every row if there's a word "Market" in a row. But i get the error mismatch. Option Explicit Sub findMarketing() Dim r As Range For Each rw In Worksheets("Sheet1")...
more »

2017-05-07 19:05 (1) Answers

How to Show correct Data When searching

I have a master detail application that presenting different data for each of the cells views, my problem is that when I'm searching and filtering cells with my search-controller the data at the detailView of the cell view controller is getting conf...
more »

2017-04-30 14:04 (0) Answers

PHP Search database with PDO

I thought this would be a fairly simple task but I keep getting this error when I try to search now "Notice: Array to string conversion in xxxxxxxx.php". My code is pretty simple and is as follows: <?php $content .= "<h1>Search for a comic...
more »

2017-04-28 03:04 (2) Answers

Search with ajax , "like" in array

Please help with search script $("#search").on("keyup",function(){ var search=$("#search").val(); search=search.replace(/ +/g, ' '); if(search.length>=1){ var result=search.split(""); $.ajax({ type: 'POS...
more »

2017-04-27 18:04 (2) Answers

PHP search with PDO

I am trying to convert search function from one tutorial from mysql into PDO. I need to search inside of my table. With my limited knowledge I was able to do this. However, there are still some things I cannot resolve. What I am missing? When searchi...
more »

2017-04-23 18:04 (0) Answers

How can I search with belongsto laravel?

My query to search for a username in a store listing is as follows: $data = Store::join('users AS b', 'b.id', '=', 'stores.user_id') ->where('b.name', 'like', '%hazard%') ->paginate(); It works. But I use join to do...
more »

2017-04-23 08:04 (2) Answers

Error printing a string

I'm creating a algorithm that generate numbers (numbers like strings) from 0 to 9999 and search its frequency in a array a[50000]. char key[4]; int freq; for (int i = 0; i < 10000; i++) { sprintf(key,"%04i",i); // save 4 digits in key, ...
more »

2017-04-21 08:04 (0) Answers

Implementing search to map view controller

In my project i have a mapView with a lot of annotations & i would like to add a search functionality to the map so i can search those annotations and quickly find the annotation i want. I followed a tutorial i found on the web but it searches g...
more »

2017-04-18 19:04 (1) Answers

Laravel 5 Search in Multi attributes

I`m new to the laravel 5.4 and i need to create a multi attribute search.i can only do the search for a single attribute.but i cannot find out the right way to do so. here is the search field i want. Here is the view related to it. <div class...
more »

2017-04-17 05:04 (1) Answers

Search and Update Values in a row with a userform

I have created a userform for data entry. I am now looking to expand this to look into data that has already been entered, where some data may be missing, and updating the values within that row. The search criteria is a reference number, which is i...
more »

2017-04-13 11:04 (1) Answers

VBA - optimize runtime for hiding columns

I have a worksheet with a table of 50 years, starting from 2017 to 2066. This macro is making a print area for the first 10 years, with the tenth year being a user input and hiding any other columns. We would remove the 10th consecutive year (2026) a...
more »

2017-03-24 23:03 (1) Answers

Giving result from random query in search box

This following script works as long as the keyword/user's query contains single word. When I type 2 words, such as; 'honda brio', it shows as I wish. But when I type randomly, such as; 'brio honda'. It does not show anything. How can I enable the se...
more »

2017-03-21 14:03 (0) Answers

Look for a word in a set of cells

I am trying to create a cell that gives a pass/fail result based on the contents of D11:D15. If even one of the cells in that range have the value of "FAIL", I want the cell above (that the formula is going into) to read "FAILED". If they are all "PA...
more »

2017-03-20 15:03 (1) Answers

Search emails including attachments stored in HDFS

I need to search the text content of a couple of TB of email files (.eml, .msg) including their attachments (mainly office documents, .xlsx, .docx, .pptx, .pdf) stored on a Hadoop distributed File System (or probably a data store like HBase) for a bu...
more »

2017-03-10 10:03 (0) Answers