Synonym import file format – error

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Synonym import file format – error

This topic contains 9 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 3 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #30616
    robertmattar87
    robertmattar87
    Participant

    Hi guys I am trying to upload the attached synonym file.

    Can you confirm if the format is correct as I’m getting an error message.

    Cheers,

    Robert

    Attachments:
    You must be logged in to view attached files.
    #30619
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    There is a comma after the last array element in the json file. If you remove that, it should work. If wordpress does not allow uploading the file, try renaming it to asp_synonyms_export.json

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #30621
    robertmattar87
    robertmattar87
    Participant
    You cannot access this content.
    #30622
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, that would work. You can also try renaming it to asp_synonyms_export.json before upload, it might be allowed then.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #30669
    robertmattar87
    robertmattar87
    Participant

    Hi guys,

    So I was able to import the file (when renamed to a json file). I reindexed the search however it is not working with any of the imported synonyms. If I manually create it it works fine (but we have over 1000!).

    Any help would be great.

    Thanks,

    Robert

    #30671
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Did the size of the index increase after reindexing?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #30672
    robertmattar87
    robertmattar87
    Participant

    Yes it did which was odd. Just to check it I deleted one of the imported synonyms and recreated it manually and reindexed and it started working.

    #30673
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I think it might be the upper case then, I’m 99% sure. I checked the code, and the import does not force lower case before pushing to the database (because the export is forced as lowercase by default), but the keywords should be lowercase. Can you lowercase the file easily? You can use this tool.
    I will add an check to force lower case on all import in the next release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #30675
    robertmattar87
    robertmattar87
    Participant

    Hey Ernest, i’m still seeing sporadic issues even after that.

    It’s usually when there is a scenario like this:

    Post Title: p416b

    Add keyword p416b with synonym pj416b. This fails

    The reverse scenario seems to work fine.

    Post title: pj416b

    Add keyword pj416b with synonym p416b. This seems to work.

    #30678
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    For that, you need to enable this option: https://i.imgur.com/aFrcxmC.png
    In that case, the synonyms work in both ways, as one set, so all definitions work backwards as well.

    When that option is enabled, you can reduce the sets, like so: https://i.imgur.com/q0PF5Aq.png
    Then, if you define a rule for example: cf4 => cfc4, cfj4, it means, the plugin will generate the following final rules (all keyword to keyword matches):

    cf4 => cfc4, cfj4
    cfc4 => cf4 , cfj4
    cfj4 => cfc4, cf4 

    This can help greatly reduce the rules count, if you need all keywords in a group to work in every direction anyways.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.