Developer forum

Forum » Development » New Index paragraph settings

New Index paragraph settings

Tom Kamphuis
Reply

Hi guys,

We're using the new indexer for our searches and I've noticed that the settings for the QueryPublisher module on a paragraph are system specific. For example, if I save a custom paragraph with the QueryPublisher module the following settings are stored in the database:

<?xml version="1.0" encoding="utf-8"?>
<Settings>
  <Query>C:\PathPart1\PathPart2\PathPart3\Files\System\Repositories\StrookRepository\StrookQuery.query</Query>
  <Facets></Facets>
  <Template>QueryPublisher/StrookJson.cshtml</Template>
  <Template_path>/Files/Templates/Designs/Parts/QueryPublisher/StrookJson.cshtml</Template_path>
  <PageSize>99</PageSize>
</Settings>

As you can see, the query is an absolute path. Is it in any way possible to get make this path relative? That way we could deploy our applications a lot easier.

Cheers,
Tom


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Tom,

I will take a look at this, though I cannot guarantee when it'll make it into a release.

- Jeppe

Votes for this answer: 1
 
Tom Kamphuis
Reply

Allright, but what would be the best way to work with repositories in the following circumstance be:
- Working with multiple developers on a project.
- Project saved in source control system.
- Database shared between developers from central database server.
- Creating a repository on the application running locally for developer A. (File on disk, paragraph settings in database)
- Developer B wants to alter module settings for a page which uses the Query module

In the present situation, a developer get's a YSOD because they're using different local filepaths to host the same application.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> but what would be the best way to work with repositories in the following circumstance be

Have your devs use the same local folder structure?

Imar

 
Tom Kamphuis
Reply

Yeah well, that would be the way to make it work right now. But it doesn't feel as if it's the best way to work right? When deploying to a next stage in the DTAP we also need to make sure that the folder structure is the same, which is always different on a Windows server in regards to dev-machines.

 
Nicolai Høeg Pedersen
Reply

Hi Tom

Of course we will fix this as Jeppe states. It is on its way. Until you get it, Imars approach is an option.

BR Nicolai

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

This has been fixed for 8.7.1.0 released later today and in the next hotfix for 8.7. I don't know when this hotfix is available, but we'll notify you here once it is.

- Jeppe

 
Tom Kamphuis
Reply

Hi Jeppe,

I've installed the new version and I've seen your fix works for the query publisher so thank you for that. Something that also makes use of the path are the modulesettings for the Ecom module (the <IndexQuery>C:\PATH\GroupQuery.query</IndexQuery> element), this should also be a relative path to share work more easily.

Cheers,
Tom

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

We are aware of this as well and we have a backlog item to fix it, but due to time constraints, we had to choose which of the fixes made it in 8.7.1 at release. It will be fixed -- probably with the next hotfix, but I cannot guarantee that. It will be fixed soon.

- Jeppe

 
Tom Kamphuis
Reply

Any idea on when this is fixed? I noticed the new release but it doesn't contain the fix right?

Cheers,
Tom

 
Kristian Kirkholt
Reply

Hi Tom

The problem regarding #19406 "Change how Query path for QueryPublisher is stored" has now been resolved in Dynamicweb version 8.7.0.8

You are able to get this version in the download section.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 
Tom Kamphuis
Reply

Hi Kristian,

We'll I meant this specific one:
I've installed the new version and I've seen your fix works for the query publisher so thank you for that. Something that also makes use of the path are the modulesettings for the Ecom module (the <IndexQuery>C:\PATH\GroupQuery.query</IndexQuery> element), this should also be a relative path to share work more easily.

Cheers,
Tom

 
Kristian Kirkholt
Reply

Hi Tom

Okay we have made a new version 8.7.0.9

You are able to get this version in the download section.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum