I'm stacking in searching faunaDB document by index. Please tell me what is wrong with my steps.
I have a document that has a value of externalID as "GBXzbXya".
I've created a index named label_search_by_externalID which has term as externalID
Then I've searched GBXzbXya, but I've got a blank array as follows:
Now, I've no idea what was wrong. Any suggestions are welcome! Thank you for your help!
I've found the cause is the case mismatch. The document entry is externalID although Index term is ExternalID.
Related
When using Lucene indexing in Sitecore, is it possible to add items to an index based on the content of an item? Indexes can be built based on template id but I would like to add additional criteria to filter items before they are added to the index.
I am not sure exactly what you mean. The headline seems different than the body?
Anyways, from the actual question, I understand that you'd like to add items only if a given criteria is meet? It could for instance be - only add items that are based on template X.
As far as I know, the responsibility for getting data for the index lies with the ItemCrawler. The standard ItemCrawlers are based on paths (e.g. everything under /Sitecore/home is indexed). I am thinking you could make your own ItemCrawler and use that in your index instead.
Here are some examples of a custom item crawlers:
http://mityasctech.blogspot.com/2016/10/create-custom-sitecore-search-crawler.html
http://mrstevenzhao.blogspot.com/2014/04/sitecore-custom-item-crawler.html
I hope this can help you.
I know this is a repost, I have done my research on everything possible and I couldn't find anything to assist nor help me with my current problem. No matter how many times I re-create my Query or Form, I just can't seem to get it to work correctly. if I run my Query, I will get the correct information displayed, but when it comes to adding information through a custom form I made, I get this error -> "cannot add records join key of table not in recordset".
My current Query, incase you wanted to see. I only access vendorNoID from the vendor table. I require all the information from the rest of the tables.
I am able to enter information in this form for tbl_address and tbl_addressType, but I get the error for vendor / purchaseOrder. Any reason whats causing this?!?!
Any advice will be greatly appreciated
The selected value of the vendor combobox got to be bound to [tbl_purchase_order].[vendorID]. To the table, where the selected value is the foreign key.
It's got to be the same as you already did with the address_typeID.
The selected value of the vendor combobox got to be bound to [tbl_purchase_order].[vendorID]. To the table, where the selected value is the foreign key. (#VMai)
In my opinion, open the Query Builder of Form (as picture below), then add column [tbl_purchase_order].[vendorID]
/
Cause I don't have enought reputation for write comment, so I write down here.
Hope it help ! ^^
I have a lookup column 'usertype' in one of my list, that is lookup for another list. and in my code when i try to access this column, item["usertype"]
i get an error: ArgumentException: Value does not fall within the expected range.
I tried with Lookup Resource Throttling in Central Administration.
But still i am not able to access this field.
And this field is not programmatically created.
Any idea to solve this..
Thanks in advance.
I have found the solution.
Go through the below link.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/567ed634-0433-4e6a-85e4-b35574f5db21/sharepoint2010-argumentexception-value-does-not-fall-within-the-expected-range?forum=sharepointcustomizationlegacy&prof=required
I'm trying to rearrange a column (int) during search in the jQuery dataTable but found no way. The following link will clearly depict the issue i have.
http://s3.postimg.org/6hwa5e637/Capture.jpg
You can see that after search the 1st column (Serial #) has numbers 2 and 3. Instead I need 1 and 2 there.
There must be a solution and I'm badly in need of it.
Thank you.
Are you trying to say that you want your rows to be numbered? I am not sure what you mean by "rearranged". Perhaps sharing your DataTables initialization code would shed some light on your problem?
Don't have enough reputation to comment, but will edit this answer post if Ashik clarifies his question and I have an answer.
Edit: Since you're trying to number your rows, look into using the mRender property of a column (in aoColumns). It is a function you can define for custom column rendering where you could place logic for row numbering. I'll leave the logic for that to you, but point you to some relevant material on mRender: http://datatables.net/release-datatables/examples/advanced_init/column_render.html
im trying to index a database table with Lucene 4. I index all fields of a table entry into a document as a TextField (1 document per table entry) and try to search over the directory afterward.
So my problem is, that i need all the field names that are in the directory to use a MultiFieldQuery.
QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_42, !FIELDS! , analyzer);
How do i get them? I could save them away while indexing, but it wouldn't be very performant to log them away with the index :/
Thank You
Alex
You can get the fieldnames from AtomicReader.getFieldInfos().
That will pass back a FieldInfos instance. Loop through FieldInfos.iterator(), and get the field names from FieldInfo.name
I don't see why it wouldn't be performant to store them somewhere ahead of time, though.