-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't index content #2
Comments
I can confirm, content is not indexed under following conditions: |
Same problem |
Seems like it didn't even work with typo3 v9 :( |
If someone who is smart enough would find the time to create/update the Indexer for Flux and TYPO3 LTS 9.5, I would really appreciate that. I couldn't manage it. Thanks guys. |
Guys, got it. My colleague at work fixed it. Replace code in TypesFluidcontent.php `private function getIndexableFromFluxForm(ProviderInterface $provider, Form $form, array $ttContentRow){
|
@FB1op3nUP Thank you so much for investing your time in this, I really wanted to use ke_search with flux, but could you explain a bit more how you got it to work. When I want to add a Indexer Configuration record in the search data folder I still get the error 'An error occurred trying to process items for field "Type" (TYPO3 Fatal Error: Extension key "bdm_kesearchindexer_flux" is NOT loaded!).' Before I replaced the content in ext/bdm_kesearchindexer_flux-master/classes/KeSearchIndexer/ TypesFluidcontent.php as you mentioned. (I only replaced the code from `private function getIndexableFromFluxForm' onwards. My TypesFluidcontent.php file is now the following: `<?php namespace BDM\BdmKesearchindexerFlux\KeSearchIndexer; use BDM\BdmKesearchindexerFlux\Helper\FluxHelper; require_once ( ExtensionManagementUtility::extPath( 'ke_search' ).'Classes/indexer/types/class.tx_kesearch_indexer_types_tt_content.php'); class TypesFluidcontent extends \tx_kesearch_indexer_types_tt_content{
} public function getContentFromContentElement($ttContentRow) {
} /**
}` Thanks for any further advice |
Hi, kiedo34 The code above is parsing xml stored in pi_flexform in table "tt_content". I can't really explain why this works and the original code not, but i noticed that i forgot to add some changes. `//require_once ( ExtensionManagementUtility::extPath( 'ke_search' ).'Classes/indexer/types/class.tx_kesearch_indexer_types_tt_content.php'); class TypesFluidcontent extends \TeaminmediasPluswerk\KeSearch\Indexer\Types\TtContent` You can remove require_once line and change the class definiton. Ke_Search changed class names in previous updates, so i think you get an error because TypesFluidcontent.php can't find parent class. Also you should enbale some TCA fields in file Hooks/TCA/Overrides.php. Download and reinstall Extension. I didn't developed this solution, so it's maybe better you do it this way. Here is the full extension. Hope it will work. |
Yeah, thank you so much, I got it now and I had quite a bit of time today to understand the whole thing a bit better and add some further functionality. @FB1op3nUP thanks again for your solution, without that I would've not got that far My current Version (indexes all flux fields with the variable allowKeSearchIndex, except of fields inside flux sections and objects). |
Hey guys, amazing good news, I managed to add the feature I explained above, fields nested in Flux sections and objects can now be indexed aswell. As I read through the code I recognized that the original version of BenjaminBeck didn't have this feature, at least I can't find anything into that direction, so hopefully a good new functionality ;) The changed TypesFluidcontent.php here: The complete Extension here: @FB1op3nUP Thanks again for the start and the update of the indexer. If you are using the Indexer yourself I think my added features would be useful for you aswell as choosing the flux fields with content yourself and indexing sections and objects are quite good funcionalities for common flux users :) Have fun with it. @BenjaminBeck If you are still active I think you could update the repository now as I think the indexer works with all current versions now. (Tested Typo3 9.5.11, ke_search 3.0.6, flux 9.2.0) |
This is really cool, thank you! |
Hey there, once again haha, I added a few more things, First of all I stripped tags and whitespaces of the indexed content with some code FB1op3nUP already provided before (it was not necessary before, but is necessary for the following implementation). The original Flux Indexer was based on the TtContent Indexer which results in each content Element being a single instance in the search index. When people search they can now find one same page multiple times for each single content Element. Inspired by that I added a second Indexer Type which I called 'Indexer for flux elements per page' directly under 'Indexer for flux elements' in the typo3 Indexer Configuration Type field. @FB1op3nUP I think this could also be a handy feature for you, if you use the indexer yourself. Sorry for splitting things a bit up in all those comments before. Below the new Version and in short everything that is new compared to the current version 1.0.0.
Have fun with it ;) |
@Chris-dev and @BenjaminBeck I think this issue can be closed now. |
Hey there,
I guess really last update now :) New version: |
First of all, thank you for the work @kledo-34 .
the comma is missing right after |
Could it be that |
OK TIL: |
https://extensions.typo3.org/extension/flux_kesearch_indexer tested with success in TYPO3 Mini-Documentation is in the Readme at GitHub https://github.com/MamounAlsmaiel/flux_kesearch_indexer It uses the default Page-Indexer of ke_search and uses the |
@X-Tender Sorry that I didn't answer earlier, I was not on github for a long time. As @tpinne mentioned, you better use the new TER extension, as this is maintained at the moment and it's also out there for Typo3 10. |
TYPO3 8.7.9
flux development
(no fluidcontent)
ke_search 2.6.2 (TER)
bdm_kesearchindexer_flux 1.0.0 (github)
The indexer correctly identifies and lists the FCEs in the index (including page pid, FCE created / modified date), but doesn't index the actual text field with the
allowKeSearchIndex
variable.My flux setup:
<flux:field.text name="settings.maincontent" label="Text" enableRichText="true">
<flux:form.variable name="allowKeSearchIndex" value="true"/>
</flux:field.text>
The text was updated successfully, but these errors were encountered: