Algolia Grouping (attributeForDistinct) - grouping

I'm grouping data by the attributeForDistinct option from Algolia dashboard. Is there any way to use this option from react-instantSearch-dom? There is a distinct option in the dashboard that can be changed from code true/false. I want to use the attributeForDistinct option from code to group data dynamically.enter image description here

You would turn on distinct in your index configuration, or you can configure it client side by adding it to a Configure widget.
Here's a simple example:
https://www.algolia.com/doc/api-reference/widgets/configure/react/#examples
Set it to an integer value between 0 and 4 to control the number of records with the same value for attributeForDistinct returned in the result set.

Related

Negative filtering by filter_box or some other mechanism

Let's say I have a column named Column1. There are more than 10k different values for this column, but my goal is to display on a dashboard all data except few of them. Is it possible to achieve it in Superset? As far as I understand the only one option to filter dashboard is a filter_box, and I have to choose values explicitly in filterbox, so no way to use a negative filter. Is it true, or there is some hidden mechanism?
You can use the limit selector values option to provide the filter out values you dont need by specifying the column name and the list of values you would like to ignore using the appropriate condition like *equals, not equals, etc

In kibana 4 i want to visualise a part of URL field to count

I had a field meta.uri. I want to visualize uri. I want a count of support and basic but not the full uri.
it has
/support/user/index?user=some
/support/mine/
/basic/index/
/basic/home?page=1
I want only starting part, like:
support
basic
In Kibana4, you can setup a Filter sub aggregation and define each filter.
In the "buckets" section, select "Split lines", then "Filters" for the aggregation type, then define the filter (e.g. myfield:myValue).
If you have logstash, I would suggest making a new field for this value as the events are processed.

Informatica Persistent Data Masking

I am working on Informatica Persistent Data Masking tool and I have to mask repeatable values in different tables and schemas with same masking pattern.
For example: if some name say sonal is repeating in different tables, I want to mask sonal in all tables with same masked value.
How can I do that? or which masking should I use? I have tried Key masking and similar value columns.
Thanks.
Here are the steps....
Create individual Connections (under 'Administrator' tab of the product) for Databases which contain the Tables that have data 'Sonal'.
Now, navigate to Projects tab and create a new Project and Import the Metadata from all the Connections you have created (make sure you pick required tables from each of those Connection)
Under 'Policies' page, create a "New Masking Rule" by choosing Masking Type as 'Substitution' (from 'Standard' drop-menu). Click on 'Next'.
In the 2nd step of this Rule creation wizard, select 'Repeatable' and enter any value between 1 & 1000 as 'Seed'
Select any valid Dictionary (can be a Flatfile dic or a Relational dic - but this should've already been created/added under 'Administrator -> Dictionaries' page) that has Serial Number & some valid Names which can be used to mask the Names in original/Source tables.
Pick correct columns for 'Masked Value' & 'Serial Number Column'fields. And save the Rule.
Add this Rule to your Project (which has Meatadata of all the required Tables) under "Project -> Overview -> Policies" page
Navigate to 'Define -> Data Masking' page, select all the required columns (in this example, whichever columns contain the name 'Sonal') and mark them as Similar value columns.
Assign the Substitution Masking Rule (which was created with 'Repeatable' option in Step #6) to a Column. Save the changes.
Create a Plan by navigating to 'Execute' page. Make sure you select the correct Masking Rule. After saving this Plan, select 'Generate and Execute' from Actions menu.
Once this Plan is executed successfully, you can see the Masked values (consistent value for all the occurrences of 'Sonal') in the Target Database(s).

Infragistics UltraGrid - How to use displayed values in group by headers when using an IEditorDataFilter?

I have a situation where I'm using the IEditorDataFilter interface within a custom UltraGrid editor control to automatically map values from a bound data source when they're displayed in the grid cells. In this case it's converting guid-based key values into user-friendly values, and it works well by displaying what I need in the cell, but retaining the GUID values as the 'value' behind the scenes.
My issue is what happens when I enable the built-in group by functionality and the user groups by a column using my editor. In that case the group by headers default to using the cell's value, which is the guid in my case, so I end up with headers like this:
Column A: 7F720CE8-123A-4A5D-95A7-6DC6EFFE5009 (10 items)
What I really want is the cell's display value to be used instead so it's something like this:
Column A: Item 1 (10 items)
What I've tried so far
Infragistics provides a couple mechanisms for modifying what's shown in group by rows:
GroupByRowDescriptionMask property of the grid (http://bit.ly/1g72t1b)
Manually set the row description via the InitializeGroupByRow event (http://bit.ly/1ix1CbK)
Option 1 doesn't appear to give me what I need because the cell's display value is not exposed in the set of tokens they provide. Option 2 looks promising but it's not clear to me how to get at the cell's display value. The event argument only appears to contain the cell's backing value, which in my case is the GUID.
Is there a proper approach for using the group by functionality when you're also using an IEditorDataFilter implementation to convert values?
This may be frowned upon, but I asked my question on the Infragistic forums as well, and a complete answer is available there (along with an example solution demonstrating the problem):
http://www.infragistics.com/community/forums/p/88541/439210.aspx
In short, I was applying my custom editors at the cell level, which made them unavailable when the rows were grouped together. A better approach would be to apply the editor at the column level, which would make the editor available at the time of grouping, and would provide the expected behavior.

How can i query to get the multiple values in SimpleDB (AWS)

jpg
In that Picture i have colored one part. i have attribute called "deviceModel". It contains more than one value.. i want to take using query from my domain which ItemName() contains deviceModel attribute values more than one value.
Thanks,
Senthil Raja
There is no direct approach to get what you are asking.. You need to manipulate by writing your own piece of code. By running SELECT query you will get the item Attribute-value pair. So here you need to traverse each each itemName() and count values of your desire attribute.
I think what you are refering to is called MultiValued Attributes. When you put a value in the attribute - if you don't replace the existing attribute value the values will multiply, giving you an array of items connected to the value of that attribute name.
How you create them will depend on the sdk/language you are using for your REST calls, however look for the Replace=true/false when you set the attribute's value.
Here is the documentation page on retrieving them: http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/ (look under Using Amazon SimpleDB -> Using Select to Create Amazon SimpleDB Queries -> Queries on Attributes with Multiple Values)