multivalue

Bound combobox items refers to different field items

血红的双手。 提交于 2019-12-17 21:34:54
问题 I got a bounded combobox to a group name in vb.net. i can view in the drop down items of the combobox the set of GROUP NAMES. but when i do an insert or update query, i need to make the selected group name refers to the GROUP NUMBER. I don't want to store letters in the database, instead i prefer numbers. how can i do that?! Here is my code so far : cmd1.Parameters.AddWithValue("@group", DirectCast(Additemcombobox.SelectedItem, DataRowView).Item("GroupName")) Storing the group name in

Apache Solr: Faceted Search on multivalued fields

≡放荡痞女 提交于 2019-12-14 03:07:41
问题 Im currently working on a solr based search application. I have two multivalued fields for example: The data is read out of a database. <int name="id">1</int> <arr name="type"> <str>Marke</str> <str>Modell</str> <str>Fahrzeugtyp</str> <str>engine</str> </arr> <arr name="value"> <str>Volkswagen</str> <str>Golf</str> <str>Golf TDI</str> <str>V-Engine</str> In my current solr configuration there is no relationship between these two multivalued fields. So that i can say "Marke = Volkswagen".

Solr Multivalued date range from two separate field as sub entity

允我心安 提交于 2019-12-13 04:36:41
问题 I am a Apache Solr beginner. My data-config.xml contains this code <entity name="event"> <field column="event_id" name="id" /> ... <entity name="request_history" query="select request_date, request_expiry_date from request_history where id=event.id"> <field column="request_date" name="start_date" /> <field column="request_expiry_date" name="expire_date" /> </entity> AND following is what in shcema.xml file against those fields <field name="start_date" type="tdate" indexed="true" stored="true"

Sorting Solr multivalue fields based on field values

本小妞迷上赌 提交于 2019-12-13 04:29:09
问题 I have multiple Solr instances with separate schemas. I need to receive multivalue field in sorted order, e.g. by type: train_station, airport, city_district, and so on: q=köln&sort=query({!v="type:(airport OR train_station)"}) desc I would like to see airport type document before train_station type. For now I am always getting train_station type at the top. How should I write the query? 回答1: You are getting train_station s at the top because of the IDF. A quick hack to fix it would be to use

Multivalue Dependency violation?

a 夏天 提交于 2019-12-13 01:29:08
问题 i am confused about mvd violation, simply i cant figure out anything that will violate mvd, for example there are A B C three columns, each row is a tuple A B C a2 b2 c1 a1 b1 c2 a1 b1 c3 a2 b3 c1 does B->>C and B->>A? thanks 回答1: An MVD, just like an FD, is a rule . It applies to your business case or not, you'll need to inspect the requirements and/or the specs in order to know. You cannot know whether it applies from looking at sample data (that applies to FD's as well). Looking at sample

How to use multivalue parameters in SSRS

荒凉一梦 提交于 2019-12-12 03:34:18
问题 I have 1 table. 1 have 1 multi-value parameter listing all properties called PROPERTIES. I want the table to display 1 property per row at a time. The table has roughly 20 columns, referencing different datasets throughout. All of the datasets that reference the property have a: WHERE RMPROPID IN (@PROPERTIES) and the dataset has @PROPERTIES value of: =JOIN(Parameters!PROPERTIES.Value,",") (This creates the list of properties selected) The table has a single row, referencing the different

dependent multi values in setting bundle

夙愿已清 提交于 2019-12-12 00:29:54
问题 I want to use two multi value in setting bundle. Second multi value's values depend on first multi value's chosen value. For example: first one is 'States' and second one is 'Cities'. Every states has different cities. Could i explain it? 回答1: You can't do this in a settings bundle. You could put this UI in your app itself, perhaps in a settings screen. 来源: https://stackoverflow.com/questions/11556332/dependent-multi-values-in-setting-bundle

Sphinx multi value attribute filter

拟墨画扇 提交于 2019-12-11 23:45:44
问题 Yes, each tag has unique Id. It is not necessary that I have to store these unique id's in a table. I can store them in this way… $tags = array("Music","Sports","Food","Books",………) Array is the best way for me as it is easily alterable. Moreover the array keys itself will serve as the unique Id's. But my situation is more critical, so let me elaborate the exact situation. I have a single table with fields like Id, Title, Description, Tags, etc. etc. etc. Id | Title | Description | Tags 1 |

Elastic Search multi-value field aggregation

喜欢而已 提交于 2019-12-11 20:47:12
问题 My indexed documents have a schema: { ... 'authors': [{'first name': 'John', 'last name': 'Smith'}, {'first name': 'Mark', 'last name': 'Spencer'}] ... } I would like to search them and aggregate by the individual authors, so get a list with top authors which occurred in my hits. Terms aggregation seems to be a match for my needs, but I'm not able to get it working for field with a list of values. Any help? 回答1: You will probably want to use a nested type, then you can use a nested

Using SSRS Expressions to see which options a user has selected from a multivalued parameter?

主宰稳场 提交于 2019-12-10 18:58:46
问题 I'm trying to set up a filter against a "Totals" column in an SSRS report using an expression for the field. I have a multivalued parameter setup with the values value1, value2, value3, and value4 as options. Before the filter, this totals column just simply added the integer values from the different columns. I want to add functionality to where you can check which of the values the user has selected. Similar to below (Pseudo code, because I can't figure out the syntax): =IIF(Parameters!