0

i have created a full text filter on magento 2 admin ui component of a custom module using this

<filterSearch name="fulltext">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="provider" xsi:type="string">aw_rma_request_listing.aw_rma_request_listing_data_source</item>
                <item name="chipsProvider" xsi:type="string">aw_rma_request_listing.aw_rma_request_listing.listing_top.listing_filters_chips</item>
                <item name="storageConfig" xsi:type="array">
                    <item name="provider" xsi:type="string">aw_rma_request_listing.aw_rma_request_listing.listing_top.bookmarks</item>
                    <item name="namespace" xsi:type="string">current.search</item>
                </item>
            </item>
        </argument>
    </filterSearch>

and inside my UpgradeSchema.php i have added

    public function searchIndexCreation($setup)
{

    $connection = $setup->getConnection();

    $connection->addIndex(  
               'aw_rma_request',  
          'aw_rma_request_index',
           ['increment_id','order_id','customer_name','customer_email'],  
          \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_FULLTEXT  
     );

}

Now the problem i am facing is that here the order_id refers to actual order_id rather than the order increment id , The client wants the full text filter to filter results on order increment id .

Can someone suggest how can i do that .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.